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

Fix for reports, #3128

This commit is contained in:
Ylian Saint-Hilaire 2021-09-13 15:01:36 -07:00
parent 508f294858
commit 72da3a683e
2 changed files with 5 additions and 4 deletions

View file

@ -5539,7 +5539,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
});
}
if (command.type == 2) { // This is the user bandwidth usage report.
if (command.type == 2) { // This is the user traffic usage report.
// If we are not user administrator on this site, only search for events with our own user id.
var ids = [user._id];
if ((user.siteadmin & SITERIGHT_MANAGEUSERS) != 0) {