From e29952c4da2e1d66bfb0545fd253160c9d847ed8 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 8 Sep 2016 09:46:31 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"Only=20show=20=E2=80=98Request=20to?= =?UTF-8?q?=20go=20live=E2=80=99=20link=20to=20admin=20users"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 385221cf5b8e625cd768a6f1c8ac9cfa16b63f12. The `current_user.has_permissions()` doesn’t seem to work on non-service pages. Will investigate later. --- 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 79f649253..a7de3fb7c 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 and current_user.has_permissions(['manage_settings'], admin_override=True) %} + {% if current_service %} remove these restrictions. {% else %} remove these restrictions.