diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-05-13 16:26:00 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-05-13 16:28:38 -0400 |
commit | 03766fd87069cb4f1394790f81ac7b853085bf71 (patch) | |
tree | e40d1b133586341f4ae9f67c614afd0044e68677 | |
parent | 2e76016c9a6ae42a43f610e0f19ea3c45875bf8c (diff) | |
download | mediagoblin-03766fd87069cb4f1394790f81ac7b853085bf71.tar.lz mediagoblin-03766fd87069cb4f1394790f81ac7b853085bf71.tar.xz mediagoblin-03766fd87069cb4f1394790f81ac7b853085bf71.zip |
Made it so that admins or moderators only would see the feature_management_panel
link if they have the featurer privilege
-rw-r--r-- | mediagoblin/plugins/archivalook/templates/archivalook/bits/feature_dropdown.html | 3 |
1 files changed, 3 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. #} + {% if request.user and + request.user.has_privilege('featurer') %} · <a href="{{ request.urlgen('manage-featured-media') }}"> {%- trans %}Feature management panel{% endtrans -%} </a> + {% endif %} |