core: optimise groups api by removing member superuser status

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-13 18:06:37 +02:00
parent fb267ee223
commit 71e68b498e
2 changed files with 0 additions and 6 deletions

View File

@ -15,7 +15,6 @@ from authentik.core.models import Group, User
class GroupMemberSerializer(ModelSerializer): class GroupMemberSerializer(ModelSerializer):
"""Stripped down user serializer to show relevant users for groups""" """Stripped down user serializer to show relevant users for groups"""
is_superuser = BooleanField(read_only=True)
avatar = CharField(read_only=True) avatar = CharField(read_only=True)
attributes = JSONField(validators=[is_dict], required=False) attributes = JSONField(validators=[is_dict], required=False)
uid = CharField(read_only=True) uid = CharField(read_only=True)
@ -29,7 +28,6 @@ class GroupMemberSerializer(ModelSerializer):
"name", "name",
"is_active", "is_active",
"last_login", "last_login",
"is_superuser",
"email", "email",
"avatar", "avatar",
"attributes", "attributes",

View File

@ -20470,9 +20470,6 @@ components:
type: string type: string
format: date-time format: date-time
nullable: true nullable: true
is_superuser:
type: boolean
readOnly: true
email: email:
type: string type: string
format: email format: email
@ -20489,7 +20486,6 @@ components:
readOnly: true readOnly: true
required: required:
- avatar - avatar
- is_superuser
- name - name
- pk - pk
- uid - uid