mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
5678fe750c
commit
b52cc9822d
@ -51,7 +51,7 @@ bool Zone::CanAccessObject(const DynamicObject::Ptr& object) const
|
||||
if (dynamic_pointer_cast<Zone>(object))
|
||||
object_zone = static_pointer_cast<Zone>(object);
|
||||
else
|
||||
Zone::GetByName(object->GetZone());
|
||||
object_zone = Zone::GetByName(object->GetZone());
|
||||
|
||||
if (!object_zone)
|
||||
object_zone = Zone::GetLocalZone();
|
||||
|
Loading…
x
Reference in New Issue
Block a user