mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-08 22:20:54 +08:00
Clarify session visibility docs after view-all-off tightening.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ef57e05942
commit
92a6827aef
1 changed files with 3 additions and 4 deletions
|
|
@ -386,10 +386,9 @@ function throwForbidden(code) {
|
|||
/**
|
||||
* Shared session visibility helpers (sidebar + @ mention + query reads).
|
||||
* Visibility:
|
||||
* - canViewAllSessions (super/fallback toggle): see all
|
||||
* - else: own owner stamp OR own user-workspace path
|
||||
* - canViewSystemSessions (admin+): also see system/channel sessions whose cwd
|
||||
* is outside the per-user workspace root (IM bots, harness cwd, unstamped)
|
||||
* - canViewAllSessions (admin-class preference, default on): see all
|
||||
* - else: own owner stamp OR own user-workspace path only
|
||||
* (shared project / channel roots are not exposed when view-all is off)
|
||||
*/
|
||||
export function createSessionAccess({
|
||||
sessionAcl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue