Made it so that admins or moderators only would see the feature_management_panel
authortilly-Q <nattilypigeonfowl@gmail.com>
Tue, 13 May 2014 20:26:00 +0000 (16:26 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Tue, 13 May 2014 20:28:38 +0000 (16:28 -0400)
link if they have the featurer privilege

mediagoblin/plugins/archivalook/templates/archivalook/bits/feature_dropdown.html

index 65cb1907d5cdd4549639c0cf80d5822eef23848b..289bbfacacc58720bfc14e269ad34062b46f2919 100644 (file)
 # 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') %}
                     &middot;
                     <a href="{{ request.urlgen('manage-featured-media') }}">
                       {%- trans %}Feature management panel{% endtrans -%}
                     </a>
+                    {% endif %}