Skip to content

Commit

Permalink
Only show new link/video button when logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
dismantl committed Apr 25, 2019
1 parent 9115b1f commit 7e148c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ <h3>Links</h3>
</ul>
{% endif %}
{% endfor %}
{% if officer %}
{% if officer and (current_user.is_administrator
or (current_user.is_area_coordinator and current_user.ac_department_id == officer.department_id)) %}
<a href="{{ url_for('main.link_api_new', officer_id=officer.id) }}" class='btn btn-primary'>New Link/Video</a>
{% endif %}
</div>
Expand Down

0 comments on commit 7e148c6

Please sign in to comment.