Fix: remove admin.logentry perm, use admin (staff) status (#6380)

This commit is contained in:
shamoon 2024-04-13 17:35:34 -07:00 committed by GitHub
parent 47b4a602a7
commit f812f2af4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 81 additions and 47 deletions

View file

@ -131,6 +131,7 @@ class TestApiAuth(DirectoriesMixin, APITestCase):
def test_api_sufficient_permissions(self):
user = User.objects.create_user(username="test")
user.user_permissions.add(*Permission.objects.all())
user.is_staff = True
self.client.force_authenticate(user)
Document.objects.create(title="Test")