mirror of
https://github.com/outline/outline.git
synced 2025-03-15 10:14:05 +00:00
fix: User exists should account for deleted workspaces, closes #7793
This commit is contained in:
@ -74,6 +74,12 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) {
|
||||
if (!domain && !team) {
|
||||
const userExists = await User.count({
|
||||
where: { email: profile.email.toLowerCase() },
|
||||
include: [
|
||||
{
|
||||
association: "team",
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
// Users cannot create a team with personal gmail accounts
|
||||
|
Reference in New Issue
Block a user