mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Don't run UpdateObjectAuthority for Comments and Downtimes
This commit is contained in:
parent
e1a941e5c7
commit
2aff6a5887
@ -159,7 +159,13 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full
|
|||||||
return false;
|
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")
|
Log(LogInformation, "ConfigObjectUtility")
|
||||||
<< "Created and activated object '" << fullName << "' of type '" << type->GetName() << "'.";
|
<< "Created and activated object '" << fullName << "' of type '" << type->GetName() << "'.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user