mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: exclude admin perms from group permissions serializer (#6608)
This commit is contained in:
parent
fda4742e86
commit
0d49314593
@ -93,7 +93,7 @@ class UserSerializer(serializers.ModelSerializer):
|
||||
class GroupSerializer(serializers.ModelSerializer):
|
||||
permissions = serializers.SlugRelatedField(
|
||||
many=True,
|
||||
queryset=Permission.objects.all(),
|
||||
queryset=Permission.objects.exclude(content_type__app_label="admin"),
|
||||
slug_field="codename",
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user