mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: exclude admin perms from frontend
This commit is contained in:
parent
f812f2af4d
commit
7281c110c6
@ -27,7 +27,7 @@ class UserSerializer(serializers.ModelSerializer):
|
||||
password = ObfuscatedUserPasswordField(required=False)
|
||||
user_permissions = serializers.SlugRelatedField(
|
||||
many=True,
|
||||
queryset=Permission.objects.all(),
|
||||
queryset=Permission.objects.exclude(content_type__app_label="admin"),
|
||||
slug_field="codename",
|
||||
required=False,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user