mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
fix empty set permissions
This commit is contained in:
parent
446842ecfc
commit
31850c3351
@ -116,10 +116,13 @@ class SetPermissionsMixin:
|
|||||||
}
|
}
|
||||||
if set_permissions is not None:
|
if set_permissions is not None:
|
||||||
for action in permissions_dict:
|
for action in permissions_dict:
|
||||||
users = set_permissions[action]["users"]
|
if action in set_permissions:
|
||||||
permissions_dict[action]["users"] = self._validate_user_ids(users)
|
users = set_permissions[action]["users"]
|
||||||
groups = set_permissions[action]["groups"]
|
permissions_dict[action]["users"] = self._validate_user_ids(users)
|
||||||
permissions_dict[action]["groups"] = self._validate_group_ids(groups)
|
groups = set_permissions[action]["groups"]
|
||||||
|
permissions_dict[action]["groups"] = self._validate_group_ids(
|
||||||
|
groups,
|
||||||
|
)
|
||||||
return permissions_dict
|
return permissions_dict
|
||||||
|
|
||||||
def _set_permissions(self, permissions, object):
|
def _set_permissions(self, permissions, object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user