mirror of
https://github.com/g4klx/MMDVMHost
synced 2026-02-06 23:05:39 +08:00
Prefix test was incorrect.
This commit is contained in:
@@ -49,7 +49,7 @@ bool CDMRAccessControl::validateId(unsigned int id)
|
|||||||
|
|
||||||
if (!m_prefixes.empty()) {
|
if (!m_prefixes.empty()) {
|
||||||
bool ret = std::find(m_prefixes.begin(), m_prefixes.end(), prefix) == m_prefixes.end();
|
bool ret = std::find(m_prefixes.begin(), m_prefixes.end(), prefix) == m_prefixes.end();
|
||||||
if (!ret)
|
if (ret)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user