mirror of https://github.com/Icinga/icinga2.git
Fix: DynamicObject::HasPrivileges should always return true if privs == 0.
This commit is contained in:
parent
a122baf9ba
commit
74a4432bad
|
@ -171,6 +171,9 @@ void DynamicObject::SetPrivileges(const String& instance, int privs)
|
|||
|
||||
bool DynamicObject::HasPrivileges(const String& instance, int privs) const
|
||||
{
|
||||
if (privs == 0)
|
||||
return true;
|
||||
|
||||
std::map<String, int>::const_iterator it;
|
||||
it = m_Privileges.find(instance);
|
||||
|
||||
|
|
Loading…
Reference in New Issue