Browse Source

return user.is_staff in user API response

pull/1453/head
youichiro 3 years ago
parent
commit
4a879d3697
1 changed files with 1 additions and 1 deletions
  1. 2
      backend/api/serializers.py

2
backend/api/serializers.py

@ -19,7 +19,7 @@ class UserSerializer(serializers.ModelSerializer):
class Meta:
model = get_user_model()
fields = ('id', 'username', 'is_superuser')
fields = ('id', 'username', 'is_superuser', 'is_staff')
class LabelSerializer(serializers.ModelSerializer):

Loading…
Cancel
Save