Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone

refs #6542

(cherry picked from commit c98d6a5254)
This commit is contained in:
Alexander A. Klimov 2018-12-04 17:45:54 +01:00 committed by Michael Friedrich
parent 53248a70c2
commit b888e06682
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ 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()