Repository navigation
[WEB-10183] fix: limit API intake edits to admin or creator - #10312
Conversation
Mirrors the web app rule for updating an intake work item: the creator, a project admin, or a workspace admin who is a member of the project.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
…tor (makeplane#10312) Mirrors the web app rule for updating an intake work item: the creator, a project admin, or a workspace admin who is a member of the project. (cherry picked from commit 69b1f23)
Description
The public API intake PATCH rejected only guests who were not the creator, so any project member could edit another user's intake work item. The web API requires a project admin or the creator.
PATCH now returns 403 unless the caller is a project admin, a workspace admin, or the work item's creator, the same rule this view's
deletealready applies. The existing guest check stays ahead of it.Behavior change: a project member can no longer edit someone else's intake work item through the public API.
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
plane/tests/contract/api/test_intake_issue_update_role.py: a member who is not the creator gets 403; the creator and a project admin succeed. 3 passed; the member case fails without the fix.References
Created with Claude Code