From ddcdca9a7b3b7bb809ac27e71cd24bc94b6a544a Mon Sep 17 00:00:00 2001 From: sea-kelp <66500457+sea-kelp@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:54:21 +0000 Subject: [PATCH] Fix link edit/delete buttons showing when not logged in (#403) --- .../app/templates/partials/links_and_videos_row.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenOversight/app/templates/partials/links_and_videos_row.html b/OpenOversight/app/templates/partials/links_and_videos_row.html index f1adb2414..644e505d9 100644 --- a/OpenOversight/app/templates/partials/links_and_videos_row.html +++ b/OpenOversight/app/templates/partials/links_and_videos_row.html @@ -6,7 +6,7 @@

Links

{% for link in list %}
  • {{ link.title or link.url }} - {% if officer and (is_admin_or_coordinator or link.creator_id == current_user.id) %} + {% if officer and (is_admin_or_coordinator or link.created_by == current_user.id) %} Edit @@ -45,7 +45,7 @@

    Videos

    {% if link.title %}
    {{ link.title }}
    {% endif %} {% if officer and (current_user.is_administrator or (current_user.is_area_coordinator and current_user.ac_department_id == officer.department_id) - or link.creator_id == current_user.id) %} + or link.created_by == current_user.id) %}
    Edit @@ -85,7 +85,7 @@

    Other videos

    {{ link.title or link.url }} {% if officer and (current_user.is_administrator or (current_user.is_area_coordinator and current_user.ac_department_id == officer.department_id) - or link.creator_id == current_user.id) %} + or link.created_by == current_user.id) %} Edit