Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test preview #19597

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Next Next commit
debug whitelist JetBrains
  • Loading branch information
mustard-mh committed Jan 24, 2025
commit 3c9005d0b32dfc129fb8ecda781eb7b91ed3cecf
3 changes: 2 additions & 1 deletion components/server/src/user/user-service.ts
Original file line number Diff line number Diff line change
@@ -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