Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.3k stars 574 forks source link

fix adding meshes and user groups in a peering environment #6534

Closed ijustw0rkhere closed 1 week ago

ijustw0rkhere commented 1 week ago

6417

Identified the issue with anomalous mesh and user group objects in a peering environment. The dbMeshChange and dbUgrpChange were modifying the original variable when making adjustments for the DispatchEvents functions. This was also modifying the object in memory.

I've adjusted the function to create a copy of the object for adjustment rather than modifying the original variable.