Fixed session recording permission issue, #2896

This commit is contained in:
Ylian Saint-Hilaire 2022-04-18 11:36:48 -07:00
parent 3a9aced563
commit 9b7ccb27fe
2 changed files with 2943 additions and 2904 deletions

View File

@ -1288,7 +1288,11 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
if ((command.flags == 0) && (chguser.flags != null)) { delete chguser.flags; change = 1; } else { if (command.flags !== chguser.flags) { chguser.flags = command.flags; change = 1; } }
}
if ((command.removeRights != null) && (typeof command.removeRights == 'number')) {
if ((command.removeRights == 0) && (chguser.removeRights != null)) { delete chguser.removeRights; change = 1; } else { if (command.removeRights !== chguser.removeRights) { chguser.removeRights = command.removeRights; change = 1; } }
if (command.removeRights == 0) {
if (chguser.removeRights != null) { delete chguser.removeRights; change = 1; }
} else {
if (command.removeRights !== chguser.removeRights) { chguser.removeRights = command.removeRights; change = 1; }
}
}
// Site admins can change any server rights, user managers can only change AccountLock, NoMeshCmd and NoNewGroups

File diff suppressed because it is too large Load Diff