Skip to content

Commit

Permalink
fix view only setting incorrect protocol when sharing (#5879)
Browse files Browse the repository at this point in the history
* fix view only setting incorrect protocol when sharing

---------

Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Mar 1, 2024
1 parent 3e23741 commit b4361d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshuser.js
Expand Up @@ -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;
Expand Down

0 comments on commit b4361d1

Please sign in to comment.