| 89 | } |
| 90 | |
| 91 | bool Zone::CanAccessObject(const ConfigObject::Ptr& object) |
| 92 | { |
| 93 | Zone::Ptr object_zone; |
| 94 | |
| 95 | if (object->GetReflectionType() == Zone::TypeInstance) |
| 96 | object_zone = static_pointer_cast<Zone>(object); |
| 97 | else |
| 98 | object_zone = static_pointer_cast<Zone>(object->GetZone()); |
| 99 | |
| 100 | if (!object_zone) |
| 101 | object_zone = Zone::GetLocalZone(); |
| 102 | |
| 103 | if (object_zone->GetGlobal()) |
| 104 | return true; |
| 105 | |
| 106 | return object_zone->IsChildOf(this); |
| 107 | } |
| 108 | |
| 109 | bool Zone::IsChildOf(const Zone::Ptr& zone) |
| 110 | { |
no test coverage detected