Prefix test was incorrect.

This commit is contained in:
Jonathan Naylor 2016-12-21 20:08:46 +00:00
parent aac48cb58f
commit ea8f09dbf3

View file

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