mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
Unblock composer for normal QR users after login.
Stop leaving pointer-events locks on the inert workspace card, and auto-bind the provisioned personal workspace from /api/me. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
6b24fd15da
commit
1b397c6733
3 changed files with 76 additions and 6 deletions
|
|
@ -46,12 +46,15 @@ export function createApiHandlers(config, sessionStore, rolesStore) {
|
|||
}
|
||||
|
||||
async function getCurrentUser(ctx) {
|
||||
const ws = ctx.provisionedWorkspace || null
|
||||
await sendRes(ctx.res, 200, {
|
||||
data: ctx.userContext ? {
|
||||
...ctx.userContext,
|
||||
empNo: ctx.empNo,
|
||||
role: ctx.role,
|
||||
permissions: ctx.permissions,
|
||||
workspaceId: ws?.workspaceId || null,
|
||||
workspacePath: ws?.path || null,
|
||||
} : null,
|
||||
authenticated: !!ctx.userContext,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue