diff options
Diffstat (limited to 'OpenSim/Region')
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 e32dbb3..37b403e 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 3f577f2..387a9b8 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 6d72154..de75375 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4953,5 +4953,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
4953 | DeleteSceneObject(grp, true); | 4953 | DeleteSceneObject(grp, true); |
4954 | } | 4954 | } |
4955 | } | 4955 | } |
4956 | |||
4957 | // This method is called across the simulation connector to | ||
4958 | // determine if a given agent is allowed in this region | ||
4959 | // AS A ROOT AGENT. Returning false here will prevent them | ||
4960 | // from logging into the region, teleporting into the region | ||
4961 | // or corssing the broder walking, but will NOT prevent | ||
4962 | // child agent creation, thereby emulating the SL behavior. | ||
4963 | public bool QueryAccess(UUID agentID) | ||
4964 | { | ||
4965 | return true; | ||
4966 | } | ||
4956 | } | 4967 | } |
4957 | } | 4968 | } |