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 258651f commit 33cd3cbCopy full SHA for 33cd3cb
components/server/src/user/user-service.ts
@@ -94,11 +94,6 @@ export class UserService {
94
95
async findTokensForIdentity(userId: string, identity: Identity): Promise<TokenEntry[]> {
96
const result = await this.userDb.findTokensForIdentity(identity);
97
- for (const token of result) {
98
- if (!(await this.authorizer.hasPermissionOnUser(userId, "read_info", token.uid))) {
99
- throw new ApplicationError(ErrorCodes.NOT_FOUND, "not found");
100
- }
101
102
return result;
103
}
104
0 commit comments