mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Added support for old web pages in createmesh command.
This commit is contained in:
parent
0787b90daa
commit
b397353dc6
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue