Which Project May This Editor Change?
Check a project edit in three parts: workspace membership, project assignment, and permission to write each field.
You’re reading a preview. Premium includes the full lesson and specialist practice. View the full curriculum.
Which project may this editor change?
Mia is an editor in the Green workspace. She is assigned to one project and may change its title. Another editor owns a different project, and the Blue workspace has projects Mia must not touch.
A role called "editor" is useful information. It is not permission to change every project or every property on a project.
Ask three smaller questions
| Question | Example check |
|---|---|
| Is Mia a current member of this workspace? | Her verified membership includes Green |
| May she edit this project? | The project belongs to Green and its assignment permits Mia |
| May this action write this field? | The title is editable; the server-owned lock is not |
The original route checks the editor role, takes the requested workspace at face value, and saves every proposed property. A request can therefore change more than its legitimate title edit.
{
"workspaceId": "workspace-green",
"projectId": "assigned-project",
"changes": { "title": "Updated handbook" }
}