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:
parent
07b0c8fe86
commit
ba8a73ec7a
2 changed files with 11 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue