From 60ef217e2e505746b3bdf9a898c7b59835f1fae1 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 23 Jan 2022 22:02:41 -0800 Subject: [PATCH] Fixed user managemement rights to see previous logins. --- meshuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshuser.js b/meshuser.js index aaab7af6..5cbcf339 100644 --- a/meshuser.js +++ b/meshuser.js @@ -4368,7 +4368,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use } } else { // Get previous logins for specific userid - if (user.siteadmin === SITERIGHT_ADMIN) { + if ((user.siteadmin & SITERIGHT_MANAGEUSERS) != 0) { var splitUser = command.userid.split('/'); if ((obj.crossDomain === true) || (splitUser[1] === domain.id)) { if (db.GetUserLoginEvents) {