diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs index e16e273..27792c8 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | |||
@@ -239,6 +239,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation | |||
239 | 239 | ||
240 | } | 240 | } |
241 | 241 | ||
242 | public bool QueryAccess(GridRegion destination, UUID id) | ||
243 | { | ||
244 | if (destination == null) | ||
245 | return false; | ||
246 | |||
247 | // Try local first | ||
248 | if (m_localBackend.QueryAccess(destination, id)) | ||
249 | return true; | ||
250 | |||
251 | // else do the remote thing | ||
252 | if (!m_localBackend.IsLocalRegion(destination.RegionHandle)) | ||
253 | return m_remoteConnector.QueryAccess(destination, id); | ||
254 | |||
255 | return false; | ||
256 | |||
257 | } | ||
258 | |||
242 | public bool ReleaseAgent(UUID origin, UUID id, string uri) | 259 | public bool ReleaseAgent(UUID origin, UUID id, string uri) |
243 | { | 260 | { |
244 | // Try local first | 261 | // Try local first |