mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 11:07:00 +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")
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class TestApiUiSettings(DirectoriesMixin, APITestCase):
|
|||
{
|
||||
"id": self.test_user.id,
|
||||
"username": self.test_user.username,
|
||||
"is_staff": True,
|
||||
"is_superuser": True,
|
||||
"groups": [],
|
||||
"first_name": self.test_user.first_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue