]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: correct admin permissions check for system status
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 6 May 2024 19:58:57 +0000 (12:58 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Mon, 6 May 2024 19:58:57 +0000 (12:58 -0700)
src/documents/views.py

index d281a5f2c27fae6adcfb1f74deb92f38dabecf8c..f16e2c45be0af2c70c0e5cc0b6e1a53f29146ad5 100644 (file)
@@ -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__