mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More BitLocker improvements.
This commit is contained in:
parent
e5e86fee19
commit
f2bc7d5349
4 changed files with 58 additions and 80 deletions
|
@ -6273,6 +6273,12 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
delete doc.type;
|
||||
delete doc.domain;
|
||||
delete doc._id;
|
||||
|
||||
// If this is not a device group admin users, don't send any BitLocker recovery passwords
|
||||
if ((rights != MESHRIGHT_ADMIN) && (doc.hardware) && (doc.hardware.windows) && (doc.hardware.windows.volumes)) {
|
||||
for (var i in doc.hardware.windows.volumes) { delete doc.hardware.windows.volumes[i].recoveryPassword; }
|
||||
}
|
||||
|
||||
if (command.nodeinfo === true) { doc.node = node; doc.rights = rights; }
|
||||
obj.send(doc);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue