mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Fix the permission check for users without permissions.
A users without permissions should be redirected to choose-templates page when signing in.
This commit is contained in:
@@ -1455,7 +1455,7 @@ def test_route_permissions_for_choose_template(
|
||||
api_user_active,
|
||||
mock_get_template_folders,
|
||||
service_one,
|
||||
mock_get_service_templates,
|
||||
mock_get_service_templates
|
||||
):
|
||||
mocker.patch('app.job_api_client.get_job')
|
||||
validate_route_permission(
|
||||
@@ -1467,7 +1467,7 @@ def test_route_permissions_for_choose_template(
|
||||
'main.choose_template',
|
||||
service_id=service_one['id'],
|
||||
),
|
||||
['view_activity'],
|
||||
[],
|
||||
api_user_active,
|
||||
service_one)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user