From 8fc50b7a56ed73d4e3e1362c89be376bdf937d53 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 3 Feb 2020 11:27:05 -0800 Subject: [PATCH] Fixed device event log when administrator. --- meshuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshuser.js b/meshuser.js index ffd8ae7c..e9cb200b 100644 --- a/meshuser.js +++ b/meshuser.js @@ -1011,7 +1011,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use var limit = 10000; if (common.validateInt(command.limit, 1, 60000) == true) { limit = command.limit; } - if ((rights & MESHRIGHT_LIMITEVENTS) != 0) { + if (((rights & MESHRIGHT_LIMITEVENTS) != 0) && (rights != 0xFFFFFFFF)) { // Send the list of most recent events for this nodeid that only apply to us, up to 'limit' count db.GetNodeEventsSelfWithLimit(node._id, domain.id, user._id, limit, function (err, docs) { if (err != null) return;