mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 15:18:24 -04:00
Check for unknown permissions
This guards against anyone mispelling or using the wrong words for a permission, which could introduce unexpected or hard to catch errors.
This commit is contained in:
@@ -38,7 +38,7 @@ def test_user_has_permissions_on_endpoint_fail(
|
||||
_test_permissions(
|
||||
client,
|
||||
user,
|
||||
['something'],
|
||||
['send_texts'],
|
||||
'',
|
||||
False)
|
||||
|
||||
@@ -66,7 +66,7 @@ def test_user_has_permissions_or(
|
||||
_test_permissions(
|
||||
client,
|
||||
user,
|
||||
['something', 'manage_users'],
|
||||
['send_texts', 'manage_users'],
|
||||
'',
|
||||
True,
|
||||
any_=True)
|
||||
|
||||
Reference in New Issue
Block a user