mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-24 05:03:14 -05:00
Added support for old web pages in createmesh command.
This commit is contained in:
parent
0787b90daa
commit
b397353dc6
@ -2905,6 +2905,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
||||
{
|
||||
var err = null;
|
||||
try {
|
||||
// Support for old web pages that sent the meshtype as a string.
|
||||
if (typeof command.meshtype == 'string') { command.meshtype = parseInt(command.meshtype); }
|
||||
|
||||
// Check if we have new group restriction
|
||||
if ((user.siteadmin != SITERIGHT_ADMIN) && ((user.siteadmin & 64) != 0)) { err = 'Permission denied'; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user