mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-04 13:59:23 +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:
1 parent
2a20cc29a6
commit
0c25c2dac5
14 files changed
+133
-21
No files matched your search
@@ -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