dont use has_permissions to check for platform admins

platform_admin is a separate concept to permissions, so by removing the
checks for it from the current_user.has_permissions function, we can
simplify things greatly. We already record on the user whether they're
a platform admin anyway.
This commit is contained in:
Leo Hemsted
2018-02-27 16:45:20 +00:00
parent 4b69e1003e
commit 7ddad7c99e
18 changed files with 66 additions and 54 deletions

View File

@@ -11,6 +11,7 @@ from tests import (
template_json,
validate_route_permission,
)
from tests.conftest import service_one as create_sample_service
from tests.conftest import (
SERVICE_ONE_ID,
mock_get_service_email_template,
@@ -18,9 +19,8 @@ from tests.conftest import (
mock_get_service_template,
no_letter_contact_blocks,
normalize_spaces,
single_letter_contact_block,
)
from tests.conftest import service_one as create_sample_service
from tests.conftest import single_letter_contact_block
from app.main.views.templates import (
get_human_readable_delta,