(self, *args, **kwargs)
| 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( |
nothing calls this directly
no test coverage detected