Merge pull request #1592 from makeplane/sync/ce-ee

Sync: Community Changes
This commit is contained in:
pushya22
2024-10-23 20:13:43 +05:30
committed by GitHub
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -212,7 +212,7 @@ class UserAssetsV2Endpoint(BaseAPIView):
# update the attributes
asset.attributes = request.data.get("attributes", asset.attributes)
# save the asset
asset.save()
asset.save(created_by=request.user)
return Response(status=status.HTTP_204_NO_CONTENT)
def delete(self, request, asset_id):
@@ -474,7 +474,7 @@ class WorkspaceFileAssetEndpoint(BaseAPIView):
# update the attributes
asset.attributes = request.data.get("attributes", asset.attributes)
# save the asset
asset.save()
asset.save(created_by=request.user)
return Response(status=status.HTTP_204_NO_CONTENT)
def delete(self, request, slug, asset_id):
@@ -721,7 +721,7 @@ class ProjectAssetEndpoint(BaseAPIView):
# update the attributes
asset.attributes = request.data.get("attributes", asset.attributes)
# save the asset
asset.save()
asset.save(created_by=request.user)
return Response(status=status.HTTP_204_NO_CONTENT)
@allow_permission([ROLE.ADMIN, ROLE.MEMBER, ROLE.GUEST])
@@ -274,5 +274,5 @@ class IssueAttachmentV2Endpoint(BaseAPIView):
# Get the storage metadata
if not issue_attachment.storage_metadata:
get_asset_object_metadata.delay(str(issue_attachment.id))
issue_attachment.save()
issue_attachment.save(created_by=request.user)
return Response(status=status.HTTP_204_NO_CONTENT)
+1 -1
View File
@@ -169,7 +169,7 @@ class EntityAssetEndpoint(BaseAPIView):
# update the attributes
asset.attributes = request.data.get("attributes", asset.attributes)
# save the asset
asset.save()
asset.save(created_by=request.user)
return Response(status=status.HTTP_204_NO_CONTENT)
def delete(self, request, anchor, pk):
@@ -204,7 +204,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
issueTypeId: response.type_id,
projectId: response.project_id,
workspaceSlug: workspaceSlug.toString(),
isDraft: isDraft,
isDraft: is_draft_issue,
});
}