fix: enhance error handling and directory management in updateFileMount function

This commit is contained in:
Mauricio Siu 2026-08-28 11:18:53 -06:00
parent bbde5ebbc3
commit e4012d857d
3 changed files with 0 additions and 9159 deletions

View File

@ -1,13 +0,0 @@
-- Grant the new "server.terminal" permission to existing custom roles that already have
-- "server.read", which is the permission that surfaces the terminal in the UI today.
-- Roles without a "server" entry are deliberately left alone: they never saw the terminal in the
-- UI, so from now on they are denied at the websocket too.
UPDATE "organization_role" AS r
SET "permission" = jsonb_set(
r."permission"::jsonb,
'{server}',
(r."permission"::jsonb->'server') || '["terminal"]'::jsonb
)::text
WHERE jsonb_typeof(r."permission"::jsonb->'server') = 'array'
AND r."permission"::jsonb->'server' @> '["read"]'::jsonb
AND NOT r."permission"::jsonb->'server' @> '["terminal"]'::jsonb;

File diff suppressed because it is too large Load Diff

View File

@ -1303,13 +1303,6 @@
"when": 1786526512677,
"tag": "0185_needy_kingpin",
"breakpoints": true
},
{
"idx": 186,
"version": "7",
"when": 1786526513677,
"tag": "0186_grant-server-terminal-permission",
"breakpoints": true
}
]
}