From 7e148c67bc51129e8fb33cc5a2a86455e6771a5b Mon Sep 17 00:00:00 2001 From: Dan Staples Date: Sun, 7 Apr 2019 20:15:55 -0400 Subject: [PATCH] Only show new link/video button when logged in --- OpenOversight/app/templates/partials/links_and_videos_row.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenOversight/app/templates/partials/links_and_videos_row.html b/OpenOversight/app/templates/partials/links_and_videos_row.html index f49393161..2cc2f5d90 100644 --- a/OpenOversight/app/templates/partials/links_and_videos_row.html +++ b/OpenOversight/app/templates/partials/links_and_videos_row.html @@ -36,7 +36,8 @@

Links

{% 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)) %} New Link/Video {% endif %}