fix view only setting incorrect protocol when sharing (#5879)

* fix view only setting incorrect protocol when sharing

---------

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2024-03-01 13:59:49 +00:00 committed by GitHub
parent 3e23741cc8
commit b4361d1c4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 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 // Create cookie
var publicid = getRandomPassword(), startTime = null, expireTime = null, duration = null; var publicid = getRandomPassword(), startTime = null, expireTime = null, duration = null;