feat: pin sessions to workspace revisions
This commit is contained in:
@@ -121,10 +121,8 @@ export function sessionRoutes(
|
||||
};
|
||||
|
||||
/** RLS makes a foreign session indistinguishable from a missing one. */
|
||||
const authorize = async (principal: PrincipalContext, id: string): Promise<LocatedSession | undefined> => {
|
||||
const located = await locateSession(principal, id);
|
||||
return located && await resolveSessionWorkspace(located);
|
||||
};
|
||||
const authorize = async (principal: PrincipalContext, id: string): Promise<LocatedSession | undefined> =>
|
||||
await locateSession(principal, id);
|
||||
|
||||
const storageFailure = (reply: any) => reply.code(503).send({ error: "session storage is unavailable" });
|
||||
const lifecycleFailure = (reply: any, error: unknown) =>
|
||||
|
||||
Reference in New Issue
Block a user