(
request: Request, organisation_pk: int, group_pk: int, user_pk: int
)
| 296 | @api_view(["POST"]) |
| 297 | @permission_classes([IsAuthenticated, NestedIsOrganisationAdminPermission]) |
| 298 | def make_user_group_admin( |
| 299 | request: Request, organisation_pk: int, group_pk: int, user_pk: int |
| 300 | ) -> Response: |
| 301 | user = get_object_or_404( |
| 302 | FFAdminUser, |
| 303 | userorganisation__organisation_id=organisation_pk, |
| 304 | permission_groups__id=group_pk, |
| 305 | id=user_pk, |
| 306 | ) |
| 307 | user.make_group_admin(group_pk) |
| 308 | return Response() |
| 309 | |
| 310 | |
| 311 | @api_view(["POST"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…