Fixed device event log when administrator.
Ylian Saint-Hilaire committed
Feb 3, 2020 at 11:27 UTC
746d299e16611b6f02aacfcc3f0a319b4c24ac6b
1 file changed
+1
-1
meshuser.js
+1
-1
@@ -1011,7 +1011,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
1011
var limit = 10000;
1012
if (common.validateInt(command.limit, 1, 60000) == true) { limit = command.limit; }
1013
1014
- if ((rights & MESHRIGHT_LIMITEVENTS) != 0) {
1014
+ if (((rights & MESHRIGHT_LIMITEVENTS) != 0) && (rights != 0xFFFFFFFF)) {
1015
// Send the list of most recent events for this nodeid that only apply to us, up to 'limit' count
1016
db.GetNodeEventsSelfWithLimit(node._id, domain.id, user._id, limit, function (err, docs) {
1017
if (err != null) return;