mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Fix inherited permissions should not display per user in permissions form
This commit is contained in:
parent
4cfc416cdc
commit
ae0c585918
9 changed files with 58 additions and 11 deletions
|
|
@ -63,6 +63,7 @@ def set_permissions_for_object(permissions, object):
|
|||
users_to_remove = get_users_with_perms(
|
||||
object,
|
||||
only_with_perms_in=[permission],
|
||||
with_group_users=False,
|
||||
)
|
||||
if len(users_to_add) > 0 and len(users_to_remove) > 0:
|
||||
users_to_remove = users_to_remove.difference(users_to_add)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue