mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Fix: remove admin.logentry perm, use admin (staff) status (#6380)
This commit is contained in:
parent
47b4a602a7
commit
f812f2af4d
15 changed files with 81 additions and 47 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue