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

Method my_permissions

api/organisations/views.py:284–293  ·  view source on GitHub ↗
(self, request, pk)

Source from the content-addressed store, hash-verified

282
283 @action(detail=True, methods=["GET"], url_path="my-permissions")
284 def my_permissions(self, request, pk): # type: ignore[no-untyped-def]
285 org = self.get_object()
286
287 permission_data = get_organisation_permission_data(
288 org.id,
289 user=request.user,
290 )
291 serializer = UserObjectPermissionsSerializer(instance=permission_data)
292
293 return Response(serializer.data)
294
295 @extend_schema(responses={200: UserDetailedPermissionsSerializer})
296 @action(

Callers

nothing calls this directly

Calls 3

get_objectMethod · 0.45

Tested by

no test coverage detected