mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-24 15:07:17 +00:00
store app owner ID even when worker is deployed from root ctx (#3301)
This commit is contained in:
@@ -165,7 +165,8 @@ export class WorkerDriver extends PuterDriver {
|
||||
{ legacyCode: 'forbidden' },
|
||||
);
|
||||
}
|
||||
appOwnerId = actor.app?.id;
|
||||
const ownerApp = await this.stores.app.getByUid(appId);
|
||||
appOwnerId = ownerApp?.id ?? actor.app?.id;
|
||||
authorization = await this.services.auth.createWorkerAppToken(
|
||||
actor,
|
||||
appId,
|
||||
|
||||
Reference in New Issue
Block a user