mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone
refs #6542
This commit is contained in:
parent
5431eae116
commit
c98d6a5254
@ -211,7 +211,7 @@ bool Downtime::IsExpired() const
|
||||
bool Downtime::HasValidConfigOwner() const
|
||||
{
|
||||
String configOwner = GetConfigOwner();
|
||||
return configOwner.IsEmpty() || GetObject<ScheduledDowntime>(configOwner);
|
||||
return configOwner.IsEmpty() || Zone::GetByName(GetAuthoritativeZone()) != Zone::GetLocalZone() || GetObject<ScheduledDowntime>(configOwner);
|
||||
}
|
||||
|
||||
int Downtime::GetNextDowntimeID()
|
||||
|
Loading…
x
Reference in New Issue
Block a user