diff --git a/meshuser.js b/meshuser.js index 184a441f..f31518c3 100644 --- a/meshuser.js +++ b/meshuser.js @@ -4304,7 +4304,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use } // If we have view only remote desktop rights, force view-only on the guest share. - if ((rights != MESHRIGHT_ADMIN) && ((rights & MESHRIGHT_REMOTEVIEWONLY) != 0)) { command.viewOnly = true; command.p = (command.p & 1); } + if ((rights != MESHRIGHT_ADMIN) && ((rights & MESHRIGHT_REMOTEVIEWONLY) != 0)) { command.viewOnly = true; } // Create cookie var publicid = getRandomPassword(), startTime = null, expireTime = null, duration = null;