mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-30 11:19:44 -04:00
Permissions added for templates and send_messages pages. All tests passing.
Fix up page heading.
This commit is contained in:
@@ -519,7 +519,7 @@ def mock_get_jobs(mocker):
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_has_permissions(mocker):
|
||||
def _has_permission(service_id, permissions):
|
||||
def _has_permission(service_id, permissions, or_=False):
|
||||
return True
|
||||
return mocker.patch(
|
||||
'app.notify_client.user_api_client.User.has_permissions',
|
||||
|
||||
Reference in New Issue
Block a user