diff options
author | Melanie | 2011-01-28 04:09:04 +0000 |
---|---|---|
committer | Melanie | 2011-01-28 04:09:04 +0000 |
commit | 188d86998d14d23a59e345568add8ece7f5a0641 (patch) | |
tree | bfe565c6174d35c633e4ee3d4c10c40c858cef8d /OpenSim/Server/Handlers | |
parent | Fix bumping into sim borders and check estate bans for walking crossings (diff) | |
download | opensim-SC_OLD-188d86998d14d23a59e345568add8ece7f5a0641.zip opensim-SC_OLD-188d86998d14d23a59e345568add8ece7f5a0641.tar.gz opensim-SC_OLD-188d86998d14d23a59e345568add8ece7f5a0641.tar.bz2 opensim-SC_OLD-188d86998d14d23a59e345568add8ece7f5a0641.tar.xz |
Fix up QueryAccess to also check parcels
Diffstat (limited to 'OpenSim/Server/Handlers')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 57672a8..2601d2a 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -326,10 +326,17 @@ namespace OpenSim.Server.Handlers.Simulation | |||
326 | return; | 326 | return; |
327 | } | 327 | } |
328 | 328 | ||
329 | // m_log.DebugFormat("[AGENT HANDLER]: Received QUERYACCESS with {0}", (string)request["body"]); | ||
330 | OSDMap args = Utils.GetOSDMap((string)request["body"]); | ||
331 | |||
332 | Vector3 position = Vector3.Zero; | ||
333 | if (args.ContainsKey("position")) | ||
334 | position = Vector3.Parse(args["position"].AsString()); | ||
335 | |||
329 | GridRegion destination = new GridRegion(); | 336 | GridRegion destination = new GridRegion(); |
330 | destination.RegionID = regionID; | 337 | destination.RegionID = regionID; |
331 | 338 | ||
332 | bool result = m_SimulationService.QueryAccess(destination, id); | 339 | bool result = m_SimulationService.QueryAccess(destination, id, position); |
333 | 340 | ||
334 | responsedata["int_response_code"] = HttpStatusCode.OK; | 341 | responsedata["int_response_code"] = HttpStatusCode.OK; |
335 | responsedata["str_response_string"] = result.ToString(); | 342 | responsedata["str_response_string"] = result.ToString(); |