diff options
Diffstat (limited to '')
3 files changed, 45 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs index 329a259..5be6486 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs | |||
@@ -257,6 +257,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation | |||
257 | return false; | 257 | return false; |
258 | } | 258 | } |
259 | 259 | ||
260 | public bool QueryAccess(GridRegion destination, UUID id) | ||
261 | { | ||
262 | if (destination == null) | ||
263 | return false; | ||
264 | |||
265 | foreach (Scene s in m_sceneList) | ||
266 | { | ||
267 | if (s.RegionInfo.RegionHandle == destination.RegionHandle) | ||
268 | { | ||
269 | //m_log.Debug("[LOCAL COMMS]: Found region to send QueryAccess"); | ||
270 | return s.QueryAccess(id); | ||
271 | } | ||
272 | } | ||
273 | //m_log.Debug("[LOCAL COMMS]: region not found for QueryAccess"); | ||
274 | return false; | ||
275 | } | ||
276 | |||
260 | public bool ReleaseAgent(UUID origin, UUID id, string uri) | 277 | public bool ReleaseAgent(UUID origin, UUID id, string uri) |
261 | { | 278 | { |
262 | foreach (Scene s in m_sceneList) | 279 | foreach (Scene s in m_sceneList) |
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 |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e48b92b..383d95f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -5160,5 +5160,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
5160 | break; | 5160 | break; |
5161 | } | 5161 | } |
5162 | } | 5162 | } |
5163 | |||
5164 | // This method is called across the simulation connector to | ||
5165 | // determine if a given agent is allowed in this region | ||
5166 | // AS A ROOT AGENT. Returning false here will prevent them | ||
5167 | // from logging into the region, teleporting into the region | ||
5168 | // or corssing the broder walking, but will NOT prevent | ||
5169 | // child agent creation, thereby emulating the SL behavior. | ||
5170 | public bool QueryAccess(UUID agentID) | ||
5171 | { | ||
5172 | return true; | ||
5173 | } | ||
5163 | } | 5174 | } |
5164 | } | 5175 | } |