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).
|
* Shared session visibility helpers (sidebar + @ mention + query reads).
|
||||||
* Visibility:
|
* Visibility:
|
||||||
* - canViewAllSessions (super/fallback toggle): see all
|
* - canViewAllSessions (admin-class preference, default on): see all
|
||||||
* - else: own owner stamp OR own user-workspace path
|
* - else: own owner stamp OR own user-workspace path only
|
||||||
* - canViewSystemSessions (admin+): also see system/channel sessions whose cwd
|
* (shared project / channel roots are not exposed when view-all is off)
|
||||||
* is outside the per-user workspace root (IM bots, harness cwd, unstamped)
|
|
||||||
*/
|
*/
|
||||||
export function createSessionAccess({
|
export function createSessionAccess({
|
||||||
sessionAcl,
|
sessionAcl,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue