mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Fix: remove admin.logentry perm, use admin (staff) status (#6380)
This commit is contained in:
parent
47b4a602a7
commit
f812f2af4d
15 changed files with 81 additions and 47 deletions
|
|
@ -40,7 +40,7 @@ class PaperlessObjectPermissions(DjangoObjectPermissions):
|
|||
|
||||
class PaperlessAdminPermissions(BasePermission):
|
||||
def has_permission(self, request, view):
|
||||
return request.user.has_perm("admin.view_logentry")
|
||||
return request.user.is_staff
|
||||
|
||||
|
||||
def get_groups_with_only_permission(obj, codename):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue