Made it so that admins or moderators only would see the feature_management_panel

link if they have the featurer privilege
This commit is contained in:
tilly-Q 2014-05-13 16:26:00 -04:00
parent 2e76016c9a
commit 03766fd870

View File

@ -15,7 +15,10 @@
# You should have received a copy of the GNU Affero General Public License # 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/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
#} #}
{% if request.user and
request.user.has_privilege('featurer') %}
&middot; &middot;
<a href="{{ request.urlgen('manage-featured-media') }}"> <a href="{{ request.urlgen('manage-featured-media') }}">
{%- trans %}Feature management panel{% endtrans -%} {%- trans %}Feature management panel{% endtrans -%}
</a> </a>
{% endif %}