From: tilly-Q Date: Tue, 13 May 2014 20:26:00 +0000 (-0400) Subject: Made it so that admins or moderators only would see the feature_management_panel X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=03766fd87069cb4f1394790f81ac7b853085bf71;p=mediagoblin.git Made it so that admins or moderators only would see the feature_management_panel link if they have the featurer privilege --- 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 %}