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

Fixed user group management.

This commit is contained in:
Ylian Saint-Hilaire 2022-01-23 21:57:27 -08:00
parent 07b0c8fe86
commit ba8a73ec7a
2 changed files with 11 additions and 4 deletions

View file

@ -1474,8 +1474,11 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
// Get the domain
var delGroupDomain = parent.parent.config.domains[ugroupidsplit[1]];
if (delGroupDomain == null) { err = "Invalid domain id"; }
var delGroupDomain;
if (ugroupidsplit != null) {
delGroupDomain = parent.parent.config.domains[ugroupidsplit[1]];
if (delGroupDomain == null) { err = "Invalid domain id"; }
}
// Handle any errors
if (err != null) {