From b888e06682d909a224674cde655d2ba3ac033009 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 4 Dec 2018 17:45:54 +0100 Subject: [PATCH] Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone refs #6542 (cherry picked from commit c98d6a52545bf0e10b9b0d644b0d15813ab7de48) --- lib/icinga/downtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()