mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Fix: correct admin permissions check for system status
This commit is contained in:
parent
5802163a0e
commit
78af59ec17
1 changed files with 1 additions and 1 deletions
|
|
@ -1850,7 +1850,7 @@ class SystemStatusView(PassUserMixin):
|
|||
permission_classes = (IsAuthenticated,)
|
||||
|
||||
def get(self, request, format=None):
|
||||
if not request.user.has_perm("admin.view_logentry"):
|
||||
if not request.user.is_staff:
|
||||
return HttpResponseForbidden("Insufficient permissions")
|
||||
|
||||
current_version = version.__full_version_str__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue