Access control
- Workspace roles: owner, admin, member and viewer. Viewers can read but never change anything.
- Matter roles on top: viewer, contributor and manager, granted per matter.
- Restricted matters open only to the people named on them. Closed matters become read-only.
- Every request is scoped to one workspace and checked against the caller's role on the server.
- Search and answers only draw on documents the person asking can open. If access is removed later, past answers that used those documents are hidden.