From 385221cf5b8e625cd768a6f1c8ac9cfa16b63f12 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 7 Sep 2016 13:58:47 +0100 Subject: [PATCH] =?UTF-8?q?Only=20show=20=E2=80=98Request=20to=20go=20live?= =?UTF-8?q?=E2=80=99=20link=20to=20admin=20users?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only users with the manage service permission can access this page, so we should only show the link to users that have this permission. --- app/templates/views/trial-mode.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/views/trial-mode.html b/app/templates/views/trial-mode.html index a7de3fb7c..79f649253 100644 --- a/app/templates/views/trial-mode.html +++ b/app/templates/views/trial-mode.html @@ -35,7 +35,7 @@

When you’re ready we can - {% if current_service %} + {% if current_service and current_user.has_permissions(['manage_settings'], admin_override=True) %} remove these restrictions. {% else %} remove these restrictions.