Repository navigation
[WEB-10173] fix: require project admin to publish a project - #10319
Conversation
Publishing, updating and unpublishing a project board now require the project admin role, matching the web app. Project members keep read access.
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.
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
sriramveeraghanta
left a comment
There was a problem hiding this comment.
LGTM. Every DeployBoard write path is gated, the publish modal is already admin-only in the UI, and members keep GET. FYI test_deploy_board_identity_readonly_app passes only through the workspace-admin fallback, because the fixture user is a workspace admin.
Description
DeployBoardViewSetusedProjectMemberPermission, which allows POST, PATCH and DELETE for a project admin or member. Publishing a project makes its work items readable without signing in, and the web app offers "Publish project" to project admins only.create,partial_updateanddestroyon the deploy board now require project admin (@allow_permission([ROLE.ADMIN])). Reads are unchanged, andProjectMemberPermissionitself is untouched.Behavior change: a project member who is not an admin can no longer publish, change or unpublish a project through the API. As elsewhere with
allow_permission, a workspace admin who is a member of the project is still allowed.Type of Change
Screenshots and Media (if applicable)
Test Scenarios
plane/tests/contract/app/test_deploy_board_admin_only_app.py: a project member gets 403 on POST, PATCH and DELETE; a project admin succeeds. 2 passed; the member case fails without the fix.References
Created with Claude Code
Summary by CodeRabbit