From b4361d1c4ec5660ea16690a30a2cd8e2f722f94e Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Fri, 1 Mar 2024 13:59:49 +0000 Subject: [PATCH] fix view only setting incorrect protocol when sharing (#5879) * fix view only setting incorrect protocol when sharing --------- Signed-off-by: si458 --- meshuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;