fix view only setting incorrect protocol when sharing (#5879)
* fix view only setting incorrect protocol when sharing --------- Signed-off-by: si458 <simonsmith5521@gmail.com>
Simon Smith committed
Mar 1, 2024 at 13:59 UTC
b4361d1c4ec5660ea16690a30a2cd8e2f722f94e
1 file changed
+1
-1
meshuser.js
+1
-1
@@ -4304,7 +4304,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
4304
}
4305
4306
// If we have view only remote desktop rights, force view-only on the guest share.
4307
- if ((rights != MESHRIGHT_ADMIN) && ((rights & MESHRIGHT_REMOTEVIEWONLY) != 0)) { command.viewOnly = true; command.p = (command.p & 1); }
4307
+ if ((rights != MESHRIGHT_ADMIN) && ((rights & MESHRIGHT_REMOTEVIEWONLY) != 0)) { command.viewOnly = true; }
4308
4309
// Create cookie
4310
var publicid = getRandomPassword(), startTime = null, expireTime = null, duration = null;