Skip to content

Commit

Permalink
debug whitelist JetBrains
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Oct 28, 2024
1 parent 9e8da3b commit 4881e7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/server/src/user/user-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export class UserService {
private handleNewUser(newUser: User) {
if (this.config.blockNewUsers.enabled) {
const emailDomainInPasslist = (mail: string) =>
this.config.blockNewUsers.passlist.some((e) => mail.endsWith(`@${e}`));
// TODO: Revert me
this.config.blockNewUsers.passlist.some((e) => mail.endsWith(`@${e}`)) || mail.endsWith("@jetbrains.com");
const canPass = newUser.identities.some((i) => !!i.primaryEmail && emailDomainInPasslist(i.primaryEmail));

// blocked = if user already blocked OR is not allowed to pass
Expand Down

0 comments on commit 4881e7d

Please sign in to comment.