mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-23 01:04:18 +00:00
Allow authenticated LoRa admins to read paged ACLs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "SensorMesh.h"
|
||||
#include <helpers/CLICommandUtils.h>
|
||||
#include <helpers/ClientACLCLI.h>
|
||||
#include <helpers/ClientLoginPersistence.h>
|
||||
#include <helpers/ClientPathPersistence.h>
|
||||
#include <helpers/LazyPersistence.h>
|
||||
@@ -624,6 +625,9 @@ void SensorMesh::handleCommand(uint32_t sender_timestamp, char* command, char* r
|
||||
strcpy(reply, "Err - bad pubkey");
|
||||
}
|
||||
}
|
||||
} else if (mesh::cli::handleACLGet(acl, command, reply, 160 - 3,
|
||||
sender_timestamp == 0)) {
|
||||
// The page fits one LoRa reply, including an optional CLI prefix.
|
||||
} else if (sender_timestamp == 0 && strcmp(command, "get acl") == 0) {
|
||||
Stream& console = mesh::usbConsolePort();
|
||||
console.println("ACL:");
|
||||
|
||||
Reference in New Issue
Block a user