diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index 68e42ae45..192700f25 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -16,7 +16,7 @@ {% if current_service.restricted %} {% include 'views/dashboard/trial-mode-banner.html' %} {% endif %} - {% else %} + {% elif not current_user.has_permissions(['send_texts', 'send_emails', 'send_letters'], any_=True) %} {% include 'views/dashboard/no-permissions-banner.html' %} {% endif %} diff --git a/environment_test.sh b/environment_test.sh index e3f02a1a7..bc1f6e873 100644 --- a/environment_test.sh +++ b/environment_test.sh @@ -1,7 +1,7 @@ export NOTIFY_ADMIN_ENVIRONMENT='config.Test' export ADMIN_CLIENT_SECRET='dev-notify-secret-key' export ADMIN_CLIENT_USER_NAME='dev-notify-admin' -export API_HOST_NAME='http://localhost:6311' +export API_HOST_NAME='' export DANGEROUS_SALT='dev-notify-salt' export SECRET_KEY='dev-notify-secret-key' export DESKPRO_API_HOST=""