Skip to content

Commit

Permalink
Merge pull request #6885 from Icinga/fix/uoa-comment-downtime
Browse files Browse the repository at this point in the history
Don't run UpdateObjectAuthority for Comments and Downtimes
  • Loading branch information
Michael Friedrich authored Jan 16, 2019
2 parents 1c772aa + 2aff6a5 commit 6d7d523
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/remote/configobjectutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() << "'.";
Expand Down

0 comments on commit 6d7d523

Please sign in to comment.