1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fix for: Collapse all when using view Group-Tags #3765

This commit is contained in:
Ylian Saint-Hilaire 2022-03-15 14:31:28 -07:00
parent e3d638b08b
commit 4252205b74
2 changed files with 8 additions and 9 deletions

View file

@ -1776,7 +1776,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
} else {
// Check is email already exists
obj.db.GetUserWithVerifiedEmail(domain.id, email, function (err, docs) {
if ((err != null) || (docs.length > 0 && docs.find(u => u._id === req.session.cuserid) < 0)) {
if ((err != null) || ((docs.length > 0) && (docs.find(function (u) { return (u._id === req.session.cuserid); }) < 0))) {
// Email already exitst
req.session.messageid = 102; // Existing account with this email address.
} else {