mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-08 00:02:49 -04:00
parent
561b1d7c37
commit
7a751eb8af
1 changed files with 6 additions and 1 deletions
|
|
@ -79,7 +79,12 @@ void DynamicObject::SetAuthority(const String& type, bool value)
|
|||
|
||||
bool DynamicObject::HasAuthority(const String& type) const
|
||||
{
|
||||
return GetAuthorityInfo()->Get(type);
|
||||
Dictionary::Ptr authorityInfo = GetAuthorityInfo();
|
||||
|
||||
if (!authorityInfo->Contains(type))
|
||||
return true;
|
||||
|
||||
return authorityInfo->Get(type);
|
||||
}
|
||||
|
||||
void DynamicObject::SetPrivileges(const String& instance, int privs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue