]> granicus.if.org Git - icinga2/commitdiff
Fix permissions for master zones.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 8 May 2014 10:36:48 +0000 (12:36 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 8 May 2014 10:36:48 +0000 (12:36 +0200)
Refs #6107

lib/remote/zone.cpp

index 0c7d09ee2867501f309adf09588137dba982b9a6..df9856448489a6c12cf085c97f102ebbaff01df1 100644 (file)
@@ -54,7 +54,7 @@ bool Zone::CanAccessObject(const DynamicObject::Ptr& object) const
                Zone::GetByName(object->GetZone());
 
        if (!object_zone)
-               return false;
+               object_zone = Zone::GetLocalZone();
 
        while (object_zone) {
                if (object_zone.get() == this)