Don't run UpdateObjectAuthority for Comments and Downtimes

This commit is contained in:
Jean Flach 2019-01-10 11:44:14 +01:00
parent e1a941e5c7
commit 2aff6a5887
1 changed files with 7 additions and 1 deletions

View File

@ -159,7 +159,13 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full
return false;
}
ApiListener::UpdateObjectAuthority();
/* if (type != Comment::TypeInstance && type != Downtime::TypeInstance)
* Does not work since this would require libicinga, which has a dependency on libremote
* Would work if these libs were static.
*/
if (type->GetName() != "Comment" && type->GetName() != "Downtime")
ApiListener::UpdateObjectAuthority();
Log(LogInformation, "ConfigObjectUtility")
<< "Created and activated object '" << fullName << "' of type '" << type->GetName() << "'.";