MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / remove_user_as_group_admin

Function remove_user_as_group_admin

api/users/views.py:313–323  ·  view source on GitHub ↗
(
    request: Request, organisation_pk: int, group_pk: int, user_pk: int
)

Source from the content-addressed store, hash-verified

311@api_view(["POST"])
312@permission_classes([IsAuthenticated, NestedIsOrganisationAdminPermission])
313def 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()

Callers

nothing calls this directly

Calls 1

remove_as_group_adminMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…