From 0a372686d6247a2a9c1c1c97373979c31b730b9b Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Thu, 22 Sep 2016 14:36:24 +0200 Subject: [PATCH] Cleanup invs accessible to admin only --- scipost/templates/scipost/registration_invitations.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scipost/templates/scipost/registration_invitations.html b/scipost/templates/scipost/registration_invitations.html index ae1e5ad99..21bdd56e0 100644 --- a/scipost/templates/scipost/registration_invitations.html +++ b/scipost/templates/scipost/registration_invitations.html @@ -4,6 +4,7 @@ {% block bodysup %} +{% load scipost_extras %} <script> $(document).ready(function(){ @@ -33,7 +34,9 @@ <div class="flex-greybox"> <h1>Registration Invitations</h1> </div> + {% if request.user|is_in_group:'SciPost Administrators' %} <h3>Perform a <a href="{% url 'scipost:registration_invitations_cleanup' %}">cleanup</a> of existing invitations.</h3> + {% endif %} </section> <hr class="hr12"/> <section> -- GitLab