Allow authenticated LoRa admins to read paged ACLs

This commit is contained in:
mikecarper
2026-09-10 07:40:34 -07:00
parent 00163f2c2b
commit 7dd48ff0e2
10 changed files with 491 additions and 10 deletions
+4
View File
@@ -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:");