Skip to content

Commit

Permalink
Include superuser status in the backend user serializer (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jul 20, 2022
1 parent ea01592 commit f9acb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/readit/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit f9acb26

Please sign in to comment.