Skip to content

Commit 8d0ddc4

Browse files
committed
Fix
1 parent ae6be25 commit 8d0ddc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/user/gitpod-token-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class GitpodTokenService {
6969
oldPermissionCheck?: (token: GitpodToken) => Promise<void>, // @deprecated
7070
): Promise<void> {
7171
await this.auth.checkPermissionOnUser(requestorId, "write_tokens", userId);
72-
const existingTokens = await this.getGitpodTokens(requestorId, userId, oldPermissionCheck);
72+
const existingTokens = await this.getGitpodTokens(requestorId, userId);
7373
const tkn = existingTokens.find((token) => token.tokenHash === tokenHash);
7474
if (!tkn) {
7575
throw new Error(`User ${requestorId} tries to delete a token ${tokenHash} that does not exist.`);

0 commit comments

Comments
 (0)