Skip to content

Commit 33cd3cb

Browse files
authored
remove perm check on internal findTokensForIdentity (#18708)
1 parent 258651f commit 33cd3cb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ export class UserService {
9494

9595
async findTokensForIdentity(userId: string, identity: Identity): Promise<TokenEntry[]> {
9696
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-
}
10297
return result;
10398
}
10499

0 commit comments

Comments
 (0)