Skip to content

Commit

Permalink
Email address existence shouldn't be constrained by APs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Dec 18, 2024
1 parent e4e0f97 commit bb9b79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/user/user.edgedb.repository.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { ID, NotImplementedException, PublicOf } from '~/common';
import { e, RepoFor, ScopeOf } from '~/core/edgedb';
import { disableAccessPolicies, e, RepoFor, ScopeOf } from '~/core/edgedb';
import {
AssignOrganizationToUser,
RemoveOrganizationFromUser,
Expand Down Expand Up @@ -42,7 +42,7 @@ export class UserEdgeDBRepository
const query = e.select(e.User, () => ({
filter_single: { email },
}));
const result = await this.db.run(query);
const result = await this.db.withOptions(disableAccessPolicies).run(query);
return !!result;
}

Expand Down

0 comments on commit bb9b79c

Please sign in to comment.