From cecfe86e7362edb2e62345459a608c1b8e5f0667 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 6 Aug 2018 11:25:19 +0100 Subject: [PATCH] Hide email branding change if not manage service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you have the API keys permission you can see the settings page. But you can’t change or request stuff, like email branding. So we shouldn’t show the link that suggests you can. --- app/templates/views/service-settings.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index 8aa628d4d..bae208dd0 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -119,6 +119,7 @@ {{ edit_field( 'Change', url_for('.branding_request', service_id=current_service.id), + permissions=['manage_service'], )}} {% endcall %}