mirror of
https://github.com/outline/outline.git
synced 2026-12-05 10:45:07 +03:00
fix: User exists should account for deleted workspaces, closes #7793
This commit is contained in:
1 parent
f0add849f9
commit
9e54fd1bfb
1 file changed
+6
@@ -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