mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
remove unnecessary invocations of has_permissions(..., any_=True)
when added to a service, all users are given the view_activity permission. So, if that's included in the list, we don't need `any_`, and we don't need any of the other permissions.
This commit is contained in:
@@ -1752,7 +1752,7 @@ def test_route_permissions(
|
||||
service_id=service_one['id'],
|
||||
template_id=fake_uuid
|
||||
),
|
||||
['send_texts', 'send_emails', 'send_letters'],
|
||||
['view_activity', 'send_texts', 'send_emails', 'send_letters'],
|
||||
api_user_active,
|
||||
service_one)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user