Skip to content

Commit ecd52dc

Browse files
Fix permission errors for watching prebuild logs (#20026)
* Revert "Prebuild issues roundup (#20000)" This reverts commit fbc0d76. * Reapply "Prebuild issues roundup (#20000)" This reverts commit bb45446. * Fix permission check for watching prebuild logs
1 parent 669cad5 commit ecd52dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/server/src/prebuilds/prebuild-manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,9 @@ export class PrebuildManager {
660660
}
661661
await this.auth.checkPermissionOnOrganization(userId, "read_prebuild", organizationId);
662662

663-
const instance = await this.workspaceService.getCurrentInstance(userId, prebuild.workspace.id);
663+
const instance = await this.workspaceService.getCurrentInstance(userId, prebuild.workspace.id, {
664+
skipPermissionCheck: true,
665+
});
664666
const urls = await this.workspaceService.getHeadlessLog(userId, instance.id, async () => {});
665667

666668
const taskUrl = urls.streams[taskId];

0 commit comments

Comments
 (0)