mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-09-19 08:07:58 +00:00
Feature: Allow monitoring access to tasks summary (#12624)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -72,7 +72,7 @@ def has_system_status_permission(user: User | None) -> bool:
|
||||
return (
|
||||
getattr(user, "is_superuser", False)
|
||||
or getattr(user, "is_staff", False)
|
||||
or user.has_perm("paperless.view_system_status")
|
||||
or user.has_perm("paperless.view_system_monitoring")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user