mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-19 14:23:21 +08:00
Use workspace membership as session ACL; keep owners for audit.
Session RPC access checks visible workspaces (and cwd), wraps prompt and related methods with address.sessionId extraction, and gates create paths for non-admins. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
97dbfc4940
commit
bad000d5b6
4 changed files with 185 additions and 63 deletions
|
|
@ -816,6 +816,7 @@ async function initServices(ctx, config) {
|
|||
getWorkspaceRoot: () => _currentConfig?.workspaceRoot,
|
||||
rolesStore: _rolesStore,
|
||||
ensureUserWorkspace,
|
||||
getWorkspaceRegistry: () => _workspaceRegistry,
|
||||
})
|
||||
|
||||
ctx.logger?.info?.('[uds-auth] Initialized (ACL + workspaces)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue