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; }