mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
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
|
bool DynamicObject::HasPrivileges(const String& instance, int privs) const
|
||||||
{
|
{
|
||||||
|
if (privs == 0)
|
||||||
|
return true;
|
||||||
|
|
||||||
std::map<String, int>::const_iterator it;
|
std::map<String, int>::const_iterator it;
|
||||||
it = m_Privileges.find(instance);
|
it = m_Privileges.find(instance);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user