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

Function make_user_group_admin

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

Source from the content-addressed store, hash-verified

296@api_view(["POST"])
297@permission_classes([IsAuthenticated, NestedIsOrganisationAdminPermission])
298def 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"])

Callers

nothing calls this directly

Calls 1

make_group_adminMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…