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

Method permissions

api/projects/views.py:138–145  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

136 @extend_schema(responses={200: PermissionModelSerializer(many=True)})
137 @action(detail=False, methods=["GET"])
138 def permissions(self, *args, **kwargs): # type: ignore[no-untyped-def]
139 return Response(
140 PermissionModelSerializer(
141 instance=ProjectPermissionModel.objects.all(),
142 many=True,
143 context={"tag_supported_permissions": TAG_SUPPORTED_PERMISSIONS},
144 ).data
145 )
146
147 @extend_schema(responses={200: UserDetailedPermissionsSerializer})
148 @action(

Callers

nothing calls this directly

Calls 2

allMethod · 0.45

Tested by

no test coverage detected