Skip to content

CP-8540 Document permissions and 403/404 for add_colleague - #64

Closed
mattkepple wants to merge 1 commit into
mainfrom
CP-8540-add-colleague
Closed

mattkepple wants to merge 1 commit into
mainfrom
CP-8540-add-colleague

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Companion to MakerbleDev/makerble#16962 for https://makerble.atlassian.net/browse/CP-8540.

POST /projects/add_colleague.json now:

  • needs the caller to be a Project Manager of every listed Project or an Organisation Admin of its Organisation (403 otherwise);
  • returns 404 for an unknown Project;
  • returns 422 for a user who isn't a colleague in the Project's Organisation, unless the Organisation lets Project Managers add users from outside it;
  • is all or nothing.

Updated openapi.yaml (description, 403/404 responses, a new AddColleagueForbidden response with the {error} shape) and the hand-written endpointCard in server.js.

Release timing: the API docs are pre-launch, so this may be merged once it has been reviewed, without waiting for the Rails change to reach production (CLAUDE.md, "Order of work and release timing"). After launch it would have to wait for production.


Generated by Claude Code

POST /projects/add_colleague now refuses callers who aren't a Project
Manager of every listed Project or an Organisation Admin of its
Organisation (403), unknown Projects (404) and users who aren't
colleagues in the Organisation (422), all or nothing (CP-8540).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y7zY3FGYDmQ4vsfe5wBVfL
@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Oct 24, 2026 10:18am UTC

Copy link
Copy Markdown
Contributor Author

Brought into main by #200 (CP-9078), applied by hand because this PR conflicted with main. Closing it.


Generated by Claude Code

@mattkepple mattkepple closed this Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — d97f8cb6 Deployed Oct 24, 2026 by vercel[bot]
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.

2 participants