mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 00:35:53 +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()) {
|
||||
bool ret = std::find(m_prefixes.begin(), m_prefixes.end(), prefix) == m_prefixes.end();
|
||||
if (!ret)
|
||||
if (ret)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user