Added support for old web pages in createmesh command.
Ylian Saint-Hilaire committed
Mar 26, 2021 at 23:11 UTC
b397353dc6c5f13a48b5612c3ee0f8bbd1ed4a97
1 file changed
+3
meshuser.js
+3
@@ -2905,6 +2905,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
2905
{
2906
var err = null;
2907
try {
2908
+ // Support for old web pages that sent the meshtype as a string.
2909
+ if (typeof command.meshtype == 'string') { command.meshtype = parseInt(command.meshtype); }
2910
+
2911
// Check if we have new group restriction
2912
if ((user.siteadmin != SITERIGHT_ADMIN) && ((user.siteadmin & 64) != 0)) { err = 'Permission denied'; }
2913