From a1b7bd79dfa7aa2d0f70a5d2d3740e1750c0f9db Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Sun, 26 Mar 2023 14:01:20 +0000 Subject: [PATCH] fixed REST API accept permit-tg failure (#24) --- src/network/RESTAPI.cpp | 2 +- src/p25/Control.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/RESTAPI.cpp b/src/network/RESTAPI.cpp index 987fb4fe..e36362af 100644 --- a/src/network/RESTAPI.cpp +++ b/src/network/RESTAPI.cpp @@ -783,7 +783,7 @@ void RESTAPI::restAPI_PutPermitTG(const HTTPPayload& request, HTTPPayload& reply errorPayload(reply, "OK", HTTPPayload::OK); - if (!m_host->m_authoritative) { + if (m_host->m_authoritative) { errorPayload(reply, "Host is authoritative, cannot permit TG"); return; } diff --git a/src/p25/Control.cpp b/src/p25/Control.cpp index 9328801e..0ea072fa 100644 --- a/src/p25/Control.cpp +++ b/src/p25/Control.cpp @@ -772,7 +772,7 @@ void Control::clock(uint32_t ms) /// void Control::permittedTG(uint32_t dstId) { - if (!m_authoritative) { + if (m_authoritative) { return; }