Skip to content

Admins get no access to other people's workspaces (v0.27.1) - #75

Merged
sh1pt-actions-fleet[bot] merged 2 commits into
mainfrom
fix/admin-no-cross-workspace
Oct 28, 2026
Merged

sh1pt-actions-fleet[bot] merged 2 commits into
mainfrom
fix/admin-no-cross-workspace

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

A site admin was treated as owner of every organization and document. The share and new-document pickers listed every user's personal workspace, the document list showed everyone's private documents, and an admin could open, edit, delete or create documents in any workspace.

Admin is now a site role only: workspace and document access come from membership, ownership, grants and share links, the same as for everyone. The admin_* operations and the billing experiment view keep their explicit user.admin checks.

  • organizations_list, documents_list: memberships and accessible documents only, admins included
  • orgRole, access, validateTeam: no admin shortcut
  • Test: the super-admin claim test asserts no access to another user's workspace (fails on the old code)

Typecheck clean; test:server 108 pass, test:bun 228 pass.

🤖 Generated with Claude Code

ralyodio and others added 2 commits October 28, 2026 18:28
Anthony: "in readm3 i can share to other users's workspaces is that a bug or
what? seems pretty intrusive."

A site admin was treated as owner of every organization and every document:
organizations_list returned all workspaces (so the share and new-document
pickers offered everyone's personal workspace), documents_list returned every
document including private ones, and access()/orgRole()/validateTeam() let an
admin read, edit, delete, or create documents anywhere.

Now admin is a site role only. Workspace and document access come from
membership, ownership, grants and share links, the same as for everyone. The
admin_* operations (users list, claim) and the billing experiment view keep
their explicit user.admin checks.

Test: the super-admin claim test now asserts the admin cannot list, open,
edit, delete or create in another user's workspace, and that the owner's
document is untouched (fails on the old code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit a75734a into main Oct 28, 2026
9 checks passed
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.

1 participant