From 3d91e995bbda64c19ddedeaf1ae84a5cf35d9be2 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 6 Apr 2026 23:17:36 -0700 Subject: [PATCH] Fix test by making this specific like it should be --- src/documents/tests/test_api_custom_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/tests/test_api_custom_fields.py b/src/documents/tests/test_api_custom_fields.py index c02a05e8f..c3949b943 100644 --- a/src/documents/tests/test_api_custom_fields.py +++ b/src/documents/tests/test_api_custom_fields.py @@ -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="can_view_statistics"), ) non_superuser.save() self.client.force_authenticate(user=non_superuser)