mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 10:07:15 +01:00
Chore: Enable ruff FBT (#8645)
This commit is contained in:
parent
b274665e21
commit
e560fa3be0
27 changed files with 133 additions and 65 deletions
|
|
@ -58,7 +58,7 @@ def get_groups_with_only_permission(obj, codename):
|
|||
return Group.objects.filter(id__in=group_object_perm_group_ids).distinct()
|
||||
|
||||
|
||||
def set_permissions_for_object(permissions: list[str], object, merge: bool = False):
|
||||
def set_permissions_for_object(permissions: list[str], object, *, merge: bool = False):
|
||||
"""
|
||||
Set permissions for an object. The permissions are given as a list of strings
|
||||
in the format "action_modelname", e.g. "view_document".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue