Prefix test was incorrect.
This commit is contained in:
parent
aac48cb58f
commit
ea8f09dbf3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue