Skip to content

Commit 6a633b7

Browse files
committed
rebase artifacts
1 parent 2587e2e commit 6a633b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
19881988

19891989
// we use the workspacService which checks if the requesting user has access to the workspace. If that is the case they have access to snapshots as well.
19901990
// below is the old permission check which would also check if the user has access to the snapshot itself. This is not the case anymore.
1991-
const workspace = await this.workspaceService.getWorkspace(user.id, workspaceId);
1991+
const { workspace } = await this.workspaceService.getWorkspace(user.id, workspaceId);
19921992
if (workspace.ownerId !== user.id) {
19931993
throw new ApplicationError(ErrorCodes.NOT_FOUND, `Workspace ${workspaceId} does not exist.`);
19941994
}

0 commit comments

Comments
 (0)