From f9acb266afc27503d2241db00074419cd0f0116f Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Wed, 20 Jul 2022 18:01:28 +0200 Subject: [PATCH] Include superuser status in the backend user serializer (#509) --- backend/readit/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/readit/serializers.py b/backend/readit/serializers.py index a3211ef0d..e331dc0c9 100644 --- a/backend/readit/serializers.py +++ b/backend/readit/serializers.py @@ -28,8 +28,8 @@ class UserDetailsSerializer(serializers.ModelSerializer): class Meta: model = User - fields = ('username', 'email', 'first_name', - 'last_name', 'is_staff', 'permissions') + fields = ('username', 'email', 'first_name', 'last_name', + 'is_staff', 'is_superuser', 'permissions') def get_permissions(self, user): permissions = []