(
request: Request, organisation_pk: int, group_pk: int, user_pk: int
)
| 311 | @api_view(["POST"]) |
| 312 | @permission_classes([IsAuthenticated, NestedIsOrganisationAdminPermission]) |
| 313 | def remove_user_as_group_admin( |
| 314 | request: Request, organisation_pk: int, group_pk: int, user_pk: int |
| 315 | ) -> Response: |
| 316 | user = get_object_or_404( |
| 317 | FFAdminUser, |
| 318 | userorganisation__organisation_id=organisation_pk, |
| 319 | permission_groups__id=group_pk, |
| 320 | id=user_pk, |
| 321 | ) |
| 322 | user.remove_as_group_admin(group_pk) |
| 323 | return Response() |
nothing calls this directly
no test coverage detected
searching dependent graphs…