From c98d6a52545bf0e10b9b0d644b0d15813ab7de48 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 --- 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 47ef789cb..549b721c1 100644 --- a/lib/icinga/downtime.cpp +++ b/lib/icinga/downtime.cpp @@ -211,7 +211,7 @@ bool Downtime::IsExpired() const 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() -- 2.40.0