mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-16 12:50:48 +08:00
Make session visibility preference-driven and keep system-channel ACL separate.
Super/fallback can toggle view-all (default on); admin/user stay own-only while still seeing unowned system sessions. Add restore/prune helpers so empty-shell cleanup is explicit and recoverable.
This commit is contained in:
parent
c26dc68f77
commit
ad0cc98b38
17 changed files with 898 additions and 93 deletions
|
|
@ -104,7 +104,10 @@ export function identityFromAls(rolesStore) {
|
|||
return {
|
||||
empNo: ctx.empNo,
|
||||
role,
|
||||
permissions: ctx.permissions || computePermissions(role),
|
||||
// Prefer live prefs — ALS identity.permissions may be frozen at WS connect.
|
||||
permissions: typeof rolesStore.resolvePermissions === 'function'
|
||||
? rolesStore.resolvePermissions(ctx.empNo, role)
|
||||
: (ctx.permissions || computePermissions(role)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue