MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / permissions

Method permissions

api/environments/views.py:230–237  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

228 @extend_schema(responses={200: PermissionModelSerializer(many=True)})
229 @action(detail=False, methods=["GET"])
230 def permissions(self, *args, **kwargs): # type: ignore[no-untyped-def]
231 return Response(
232 PermissionModelSerializer(
233 instance=EnvironmentPermissionModel.objects.all(),
234 many=True,
235 context={"tag_supported_permissions": TAG_SUPPORTED_PERMISSIONS},
236 ).data
237 )
238
239 @extend_schema(responses={200: UserObjectPermissionsSerializer})
240 @action(

Callers

nothing calls this directly

Calls 2

allMethod · 0.45

Tested by

no test coverage detected