From 300cdf00bd17462eabffea292a3b21ecd57ee657 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 21 Mar 2016 15:36:47 +0000 Subject: [PATCH] Added more test for the side nav --- app/templates/main_nav.html | 4 ++-- tests/app/main/test_permissions.py | 3 ++- tests/app/main/views/test_all_services.py | 15 ++++++++------- tests/app/main/views/test_dashboard.py | 10 ++++++++++ 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index 5f670c24d..f7aa3aed9 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -7,13 +7,13 @@
  • Send text messages
  • Send emails
  • - {% elif current_user.has_permissions(['manage_templates','manage_api_keys'], or_=True) %} + {% elif current_user.has_permissions(['manage_templates','manage_api_keys'], admin_override=True, or_=True) %} {% endif %} - {% if current_user.has_permissions(['manage_users', 'manage_settings']) %} + {% if current_user.has_permissions(['manage_users', 'manage_settings'], admin_override=True) %}