From 03766fd87069cb4f1394790f81ac7b853085bf71 Mon Sep 17 00:00:00 2001 From: tilly-Q Date: Tue, 13 May 2014 16:26:00 -0400 Subject: [PATCH] Made it so that admins or moderators only would see the feature_management_panel link if they have the featurer privilege --- .../templates/archivalook/bits/feature_dropdown.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mediagoblin/plugins/archivalook/templates/archivalook/bits/feature_dropdown.html b/mediagoblin/plugins/archivalook/templates/archivalook/bits/feature_dropdown.html index 65cb1907..289bbfac 100644 --- a/mediagoblin/plugins/archivalook/templates/archivalook/bits/feature_dropdown.html +++ b/mediagoblin/plugins/archivalook/templates/archivalook/bits/feature_dropdown.html @@ -15,7 +15,10 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #} + {% if request.user and + request.user.has_privilege('featurer') %} · {%- trans %}Feature management panel{% endtrans -%} + {% endif %} -- 2.25.1