mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 22:25:52 -05:00
Fixed device event log when administrator.
This commit is contained in:
parent
b07f4114e4
commit
746d299e16
@ -1011,7 +1011,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
var limit = 10000;
|
var limit = 10000;
|
||||||
if (common.validateInt(command.limit, 1, 60000) == true) { limit = command.limit; }
|
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
|
// 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) {
|
db.GetNodeEventsSelfWithLimit(node._id, domain.id, user._id, limit, function (err, docs) {
|
||||||
if (err != null) return;
|
if (err != null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user