Skip to content

Commit

Permalink
[server] Minodr adjustment of requested resource kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl authored and roboquat committed Jun 28, 2022
1 parent 6d01519 commit 67b73c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/server/src/workspace/gitpod-server-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
}
traceWI(ctx, { instanceId: instance.id });
const teamMembers = await this.getTeamMembersByProject(workspace.projectId);
await this.guardAccess({ kind: "workspaceInstance", subject: instance, workspace, teamMembers }, "get");
await this.guardAccess({ kind: "workspaceLog", subject: workspace, teamMembers }, "get");

// wait for up to 20s for imageBuildLogInfo to appear due to:
// - db-sync round-trip times
Expand Down Expand Up @@ -1664,7 +1664,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
const wsiPromise = this.workspaceDb.trace(ctx).findInstanceById(instanceId);
const teamMembers = await this.getTeamMembersByProject(ws.projectId);

await this.guardAccess({ kind: "workspace", subject: ws, teamMembers }, "get");
await this.guardAccess({ kind: "workspaceLog", subject: ws, teamMembers }, "get");

const wsi = await wsiPromise;
if (!wsi) {
Expand Down

0 comments on commit 67b73c2

Please sign in to comment.