Enhancement: add view_global_statistics and view_system_status permissions (#12530)

This commit is contained in:
shamoon authored and GitHub committed 2026-04-08 15:39:47 +00:00
1 parent 826ffcccef
commit 4629bbf83e
17 files changed
+331 -73

No files matched your search

@@ -1309,7 +1309,7 @@ class TestCustomFieldsAPI(DirectoriesMixin, APITestCase):
# Test as user without access to the document
non_superuser = User.objects.create_user(username="non_superuser")
non_superuser.user_permissions.add(
*Permission.objects.all(),
*Permission.objects.exclude(codename="view_global_statistics"),
)
non_superuser.save()
self.client.force_authenticate(user=non_superuser)