We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6be25 commit 8d0ddc4Copy full SHA for 8d0ddc4
components/server/src/user/gitpod-token-service.ts
@@ -69,7 +69,7 @@ export class GitpodTokenService {
69
oldPermissionCheck?: (token: GitpodToken) => Promise<void>, // @deprecated
70
): Promise<void> {
71
await this.auth.checkPermissionOnUser(requestorId, "write_tokens", userId);
72
- const existingTokens = await this.getGitpodTokens(requestorId, userId, oldPermissionCheck);
+ const existingTokens = await this.getGitpodTokens(requestorId, userId);
73
const tkn = existingTokens.find((token) => token.tokenHash === tokenHash);
74
if (!tkn) {
75
throw new Error(`User ${requestorId} tries to delete a token ${tokenHash} that does not exist.`);
0 commit comments