From: Alexander A. Klimov Date: Tue, 4 Dec 2018 16:45:54 +0000 (+0100) Subject: Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone X-Git-Tag: v2.10.3~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b888e06682d909a224674cde655d2ba3ac033009;p=icinga2 Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone refs #6542 (cherry picked from commit c98d6a52545bf0e10b9b0d644b0d15813ab7de48) --- diff --git a/lib/icinga/downtime.cpp b/lib/icinga/downtime.cpp index 11b38d416..d9b24a3d3 100644 --- a/lib/icinga/downtime.cpp +++ b/lib/icinga/downtime.cpp @@ -215,7 +215,7 @@ bool Downtime::HasValidConfigOwner() const } String configOwner = GetConfigOwner(); - return configOwner.IsEmpty() || GetObject(configOwner); + return configOwner.IsEmpty() || Zone::GetByName(GetAuthoritativeZone()) != Zone::GetLocalZone() || GetObject(configOwner); } int Downtime::GetNextDowntimeID()