Allow authenticated LoRa admins to read paged ACLs
This commit is contained in:
1 parent
00163f2c2b
commit
7dd48ff0e2
10 files changed
+491
-10
No files matched your search
@@ -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