mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Fix: correct admin permissions check for system status
This commit is contained in:
parent
fd40258342
commit
b607c68661
@ -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…
x
Reference in New Issue
Block a user