core: optimise groups api by removing member superuser status
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
fb267ee223
commit
71e68b498e
|
@ -15,7 +15,6 @@ from authentik.core.models import Group, User
|
|||
class GroupMemberSerializer(ModelSerializer):
|
||||
"""Stripped down user serializer to show relevant users for groups"""
|
||||
|
||||
is_superuser = BooleanField(read_only=True)
|
||||
avatar = CharField(read_only=True)
|
||||
attributes = JSONField(validators=[is_dict], required=False)
|
||||
uid = CharField(read_only=True)
|
||||
|
@ -29,7 +28,6 @@ class GroupMemberSerializer(ModelSerializer):
|
|||
"name",
|
||||
"is_active",
|
||||
"last_login",
|
||||
"is_superuser",
|
||||
"email",
|
||||
"avatar",
|
||||
"attributes",
|
||||
|
|
|
@ -20470,9 +20470,6 @@ components:
|
|||
type: string
|
||||
format: date-time
|
||||
nullable: true
|
||||
is_superuser:
|
||||
type: boolean
|
||||
readOnly: true
|
||||
email:
|
||||
type: string
|
||||
format: email
|
||||
|
@ -20489,7 +20486,6 @@ components:
|
|||
readOnly: true
|
||||
required:
|
||||
- avatar
|
||||
- is_superuser
|
||||
- name
|
||||
- pk
|
||||
- uid
|
||||
|
|
Reference in New Issue