Give superuser full doc permissions

This commit is contained in:
shamoon
2023-03-03 19:50:06 -08:00
parent 53a664fb8f
commit 475f50c64d
6 changed files with 25 additions and 13 deletions

View File

@@ -931,8 +931,11 @@ class UiSettingsView(GenericAPIView):
roles = map(lambda perm: re.sub(r"^\w+.", "", perm), user.get_all_permissions())
return Response(
{
"user_id": user.id,
"username": user.username,
"user": {
"id": user.id,
"username": user.username,
"is_superuser": user.is_superuser,
},
"settings": ui_settings,
"permissions": roles,
},