permitted TG RPCs shouldn't test for m_enableControl;

pull/85/head
Bryan Biedenkapp 10 months ago
parent 63c85f3781
commit 5ecfc58300

@ -1133,11 +1133,6 @@ void Control::notifyCC_TouchGrant(uint32_t dstId)
void Control::RPC_permittedTG(json::object& req, json::object& reply)
{
if (!m_enableControl) {
g_RPC->defaultResponse(reply, "not NXDN control channel", network::RPC::BAD_REQUEST);
return;
}
g_RPC->defaultResponse(reply, "OK", network::RPC::OK);
// validate destination ID is a integer within the JSON blob

@ -1794,11 +1794,6 @@ void Control::writeRF_TDU(bool noNetwork, bool imm)
void Control::RPC_permittedTG(json::object& req, json::object& reply)
{
if (!m_enableControl) {
g_RPC->defaultResponse(reply, "not P25 control channel", network::RPC::BAD_REQUEST);
return;
}
g_RPC->defaultResponse(reply, "OK", network::RPC::OK);
// validate destination ID is a integer within the JSON blob

Loading…
Cancel
Save

Powered by TurnKey Linux.