From 8df9415c4027fbd6edf1a0bc369ea42b9272fbf1 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Mon, 22 Apr 2024 10:30:27 -0700 Subject: [PATCH] fix access to admin links (#5966) --- .../jinja2/dashboards/includes/announcement_list.html | 4 ++-- kitsune/flagit/jinja2/flagit/includes/flagged_profile.html | 2 +- kitsune/groups/jinja2/groups/list.html | 2 +- kitsune/groups/jinja2/groups/profile.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kitsune/dashboards/jinja2/dashboards/includes/announcement_list.html b/kitsune/dashboards/jinja2/dashboards/includes/announcement_list.html index cb8e5bde2aa..be9f9bbeb0c 100644 --- a/kitsune/dashboards/jinja2/dashboards/includes/announcement_list.html +++ b/kitsune/dashboards/jinja2/dashboards/includes/announcement_list.html @@ -1,11 +1,11 @@ -{% if in_staff_group(user) and user.has_perm('announcements.add_announcement') %} +{% if user.is_staff and user.has_perm('announcements.add_announcement') %} {{ _('Add announcement') }} {% endif %} {% if announcements %}