mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Give superuser full doc permissions
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user