From 74a4432badbf958218bf9fba59614843d4da3aae Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 19 Sep 2013 14:47:17 +0200 Subject: [PATCH] Fix: DynamicObject::HasPrivileges should always return true if privs == 0. --- lib/base/dynamicobject.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp index 65289e925..d68d6eca8 100644 --- a/lib/base/dynamicobject.cpp +++ b/lib/base/dynamicobject.cpp @@ -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::const_iterator it; it = m_Privileges.find(instance); -- 2.40.0