Fixed user managemement rights to see previous logins.

This commit is contained in:
Ylian Saint-Hilaire 2022-01-23 22:02:41 -08:00
parent ba8a73ec7a
commit 60ef217e2e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {