mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +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,)
|
permission_classes = (IsAuthenticated,)
|
||||||
|
|
||||||
def get(self, request, format=None):
|
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")
|
return HttpResponseForbidden("Insufficient permissions")
|
||||||
|
|
||||||
current_version = version.__full_version_str__
|
current_version = version.__full_version_str__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue