[bug]: Workspace drafts: members get 403 on their own draft; admins can delete other users’ drafts
Maintainer thường phản hồi trong vòng 1 ngày
@vihar đang làm issue này rồi.
Từ ngày 13/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
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.
retrieveis decorated withallowed_roles=[ROLE.ADMIN], creator=True, model=Issue. A draft id never exists in theIssuetable, 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.
destroyfetches the draft withDraftIssue.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)
Admin can delete another user's draft
- As a Member, create a draft and note its id.
- Log in as a workspace Admin.
- DELETE /api/workspaces//draft-issues/<member_draft_id>/
- Response: 204 and the member's draft is deleted (expected 404)
Environment
Production
Browser
None
Edition
Community
Version
0.17.0-dev
- Ngôn ngữ chính
- TypeScript
- Star
- 61.5k
- Fork
- 6.2k
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 79
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của makeplane/plane
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
makeplane/plane#10111 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
makeplane/plane#10082 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: Email notifications show a broken avatar for users without a profile photoCó thể đã có người làm @gurnoorpannu đã nhận 13 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
makeplane/plane#10009 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 Bug: Calendar work items cannot be opened on mobileCó thể đã có người làm @pennnnnnnnnn đã nhận 15 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của makeplane/plane
Issue tương tự
-
area: server priority: P3 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
appandflow/stim#4538 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Published Docker images lack the redis extra: HEADROOM_COMPRESS_SESSION_STORE stops startupCó thể đã có người làm @AlessandroSpallina đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
headroomlabs-ai/headroom#4513 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug extension extension: obsidian platform: Windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
raycast/extensions#32838 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
copy design-review mac P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
tosunlab/hisarapp-core#510 ·
-
bug priority-medium to-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày