You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug]: Workspace drafts: members get 403 on their own draft; admins can delete other users’ drafts #10001
Workspace drafts are meant to be private to their creator. list, partial_update and create_draft_to_issue in WorkspaceDraftIssueViewSet all scope the lookup to created_by=request.user, but two sibling actions don't:
Members get 403 on their own draft.retrieve is decorated with allowed_roles=[ROLE.ADMIN], creator=True, model=Issue. A draft id never exists in the Issue table, so the creator check never matches, and a workspace MEMBER gets {"error": "You don't have the required permissions."} when opening a draft they created.
Admins can delete other users' private drafts. destroy fetches the draft with DraftIssue.objects.get(workspace__slug=slug, pk=pk), with no owner check. A workspace ADMIN can delete another member's draft, even though they can't list or open it.
Expected: any ADMIN/MEMBER can open and delete their own drafts, and gets a 404 for someone else's draft (same as partial_update and create_draft_to_issue).
File: apps/api/plane/app/views/workspace/draft.py
I have a fix with contract tests ready and will open a PR.
Steps to reproduce
Member can't open own draft
In a workspace, log in as a user with the Member role.
Create a draft work item (POST /api/workspaces//draft-issues/).
GET /api/workspaces//draft-issues/<draft_id>/
Response: 403 "You don't have the required permissions." (expected 200)
Activity
makeplane commentedon Oct 13, 2026
Synced with Plane Workspace 🔄
[GIT-362] [bug]: Workspace drafts: members get 403 on their own draft; admins can delete other users’ drafts