Skip to content

[WEB-10183] fix: limit API intake edits to admin or creator - #10312

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10183-api-intake-patch-role
Nov 16, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10183-api-intake-patch-role

Conversation

@pablohashescobar

Copy link
Copy Markdown
Member

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 delete already 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

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

  • New 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

  • WEB-10183

Created with Claude Code

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.
Copilot AI balanced review requested due to automatic review settings November 15, 2026 23:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9bbadc22-28f7-4ec9-8405-81dbda69336d
Commits

Reviewing files that changed from the base of the PR and between 290383d and 7768900.

Files selected for processing: 2

  • apps/api/plane/api/views/intake.py
  • apps/api/plane/tests/contract/api/test_intake_issue_update_role.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@makeplane

makeplane Bot commented Nov 15, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@pablohashescobar pablohashescobar changed the title [WEB-10183] fix(security): limit API intake edits to admin or creator [WEB-10183] fix: limit API intake edits to admin or creator Nov 16, 2026
@sriramveeraghanta
sriramveeraghanta merged commit 69b1f23 into preview Nov 16, 2026
19 of 20 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/web-10183-api-intake-patch-role branch November 16, 2026 08:34
Pawel-Kranzberg pushed a commit to klazwi/pi-plane that referenced this pull request Nov 18, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants