mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 06:35:54 -05:00
Updated Windows Agents with cert regen on reintall.
This commit is contained in:
parent
45a50db52c
commit
b7df070bd2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -393,12 +393,14 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
var existingUser = users[newobj._id];
|
var existingUser = users[newobj._id];
|
||||||
if (existingUser) {
|
if (existingUser) {
|
||||||
// Merge the links
|
// Merge the links
|
||||||
|
if (typeof newobj.links == 'object') {
|
||||||
for (var j in newobj.links) {
|
for (var j in newobj.links) {
|
||||||
if ((existingUser.links == null) || (existingUser.links[j] == null)) {
|
if ((existingUser.links == null) || (existingUser.links[j] == null)) {
|
||||||
if (existingUser.links == null) { existingUser.links = {}; }
|
if (existingUser.links == null) { existingUser.links = {}; }
|
||||||
existingUser.links[j] = newobj.links[j];
|
existingUser.links[j] = newobj.links[j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (existingUser.name == 'admin') { existingUser.links = {}; }
|
if (existingUser.name == 'admin') { existingUser.links = {}; }
|
||||||
objectToAdd.push(existingUser); // Add this user
|
objectToAdd.push(existingUser); // Add this user
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user