From b17a0f154fa161d0bb9b3cc3c1941eb32458e509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 5 Jun 2019 11:57:29 +0200 Subject: [PATCH] Added detail to set permission response. --- openslides/users/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openslides/users/views.py b/openslides/users/views.py index 42c113095..f2059e230 100644 --- a/openslides/users/views.py +++ b/openslides/users/views.py @@ -386,7 +386,7 @@ class GroupViewSet(ModelViewSet): @transaction.atomic def set_permission(self, request, *args, **kwargs): """ - Send {perm: set: } to set or + Send {perm: , set: } to set or remove the permission from a group """ perm = request.data.get("perm") @@ -417,7 +417,9 @@ class GroupViewSet(ModelViewSet): self.inform_permission_change(group, permission) inform_changed_data(group) - return Response() + return Response( + {"detail": f"Permissions of group {group.pk} successfully changed."} + ) def inform_permission_change( self,