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:
parent
508f294858
commit
72da3a683e
2 changed files with 5 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue