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