mirror of
https://github.com/makeplane/plane.git
synced 2026-07-09 20:10:06 +02:00
All three V2 issue attachment handlers (PATCH, DELETE, GET single) looked up FileAsset by (pk, workspace, project_id) only — issue_id in the URL was silently ignored. Any project member could target another user's attachment UUID using their own issue_id, and PATCH would transfer ownership via unconditional created_by = request.user. Add issue_id=issue_id to all three FileAsset.objects.get() calls so the lookup is correctly scoped to the attachment's owning issue. Remove the created_by overwrite in PATCH — created_by is set at creation time and must not be reassigned by a subsequent upload-confirm call. Co-authored-by: Plane AI <noreply@plane.so>