mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 07:23:03 +03:00
Fixed session recording permission issue, #2896
This commit is contained in:
parent
3a9aced563
commit
9b7ccb27fe
@ -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
Loading…
Reference in New Issue
Block a user