Skip to content

[WEB-10173] fix: require project admin to publish a project - #10319

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10173-deploy-board-admin-only
Nov 16, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/web-10173-deploy-board-admin-only

Conversation

@pablohashescobar

@pablohashescobar pablohashescobar commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Description

DeployBoardViewSet used ProjectMemberPermission, 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_update and destroy on the deploy board now require project admin (@allow_permission([ROLE.ADMIN])). Reads are unchanged, and ProjectMemberPermission itself 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

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

  • WEB-10173

Created with Claude Code

Summary by CodeRabbit

  • Access Changes
    • Project admins can create, update, and delete deploy boards. Other project members retain read access but cannot change board settings.
  • Validation
    • Deploy board requests now return an error when the project is outside the selected workspace or the intake does not belong to the project.

Publishing, updating and unpublishing a project board now require the project admin role, matching the web app. Project members keep read access.
Copilot AI balanced review requested due to automatic review settings November 15, 2026 23:52

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.

@makeplane

makeplane Bot commented Nov 15, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Deploy-board creation, update, and deletion now require the project admin role. Contract tests check member and admin access, including retained member read access.

Changes: Deploy-board permissions

Layer / File(s) Summary
Restrict deploy-board mutations
apps/api/plane/app/views/project/base.py, apps/api/plane/tests/contract/app/test_deploy_board_admin_only_app.py
Create, update, and delete operations require the admin role. Contract tests check that members cannot mutate boards and can still read them. The tests also check successful admin mutations.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 37dbd

This change restricts publishing, updating and unpublishing a project to project admins, while reads stay available to members. No actionable merge-blocking risk was found, and the new contract tests cover the intended access rules.

Pre-merge checks: Passed 4

Check name Status Explanation
Description check Passed The description follows the template. It covers the change, marks the Bug fix and Improvement types, and lists test scenarios and a reference to WEB-10173. The Screenshots section keeps its placeholde…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names the main change: project admins are now required to publish a project. The changeset restricts DeployBoardViewSet create, partial_update, and destroy to ROLE.ADMIN and adds contract te…
Full details: Description check

Explanation

The description follows the template. It covers the change, marks the Bug fix and Improvement types, and lists test scenarios and a reference to WEB-10173. The Screenshots section keeps its placeholder comment, which is acceptable because the change is API-only. It also states the behavior change for non-admin members clearly.

Full details: Title check

Explanation

The title names the main change: project admins are now required to publish a project. The changeset restricts DeployBoardViewSet create, partial_update, and destroy to ROLE.ADMIN and adds contract tests that check member 403 responses and admin success. The title includes a ticket prefix and a 'fix:' type, which is consistent with the change. It is specific and short, so it describes the primary change clearly.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

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: 6c495306-2dfd-40c5-bb7f-80322487ef8d
Commits

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

Files selected for processing: 2

  • apps/api/plane/app/views/project/base.py
  • apps/api/plane/tests/contract/app/test_deploy_board_admin_only_app.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@pablohashescobar pablohashescobar changed the title [WEB-10173] fix(security): require project admin to publish a project [WEB-10173] fix: require project admin to publish a project Nov 16, 2026

@sriramveeraghanta sriramveeraghanta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

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