1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-07 20:25:08 +02:00

Don't run UpdateObjectAuthority for Comments and Downtimes

(cherry picked from commit 2aff6a5887112259d795401e907a879ce424db51)
This commit is contained in:
Jean Flach 2019-01-10 11:44:14 +01:00 committed by Michael Friedrich
parent 2e2e4ffcec
commit cd65ffc55c

@ -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() << "'.";