1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed account name in device sessions.

This commit is contained in:
Ylian Saint-Hilaire 2021-06-28 13:58:06 -07:00
parent 9b7dfff4b1
commit 4b52e0269d
2 changed files with 4 additions and 2 deletions

View file

@ -1610,6 +1610,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
// Add the user's real name if present
var u = parent.users[command.userid];
if (u == null) return;
if (u.name) { command.name = u.name; }
if (u.realname) { command.realname = u.realname; }
// An agent can only request images of accounts with rights to the device.