diff options
author | Melanie | 2011-01-28 03:07:25 +0100 |
---|---|---|
committer | Melanie | 2011-01-28 03:07:25 +0100 |
commit | 657c14c5db8b0c882484926ba76aa64ec757ee07 (patch) | |
tree | 595a97b1a82144acade004772d65e018ca93426c /OpenSim/Server | |
parent | Comment a very spammy debug message that was being output directly to console. (diff) | |
download | opensim-SC-657c14c5db8b0c882484926ba76aa64ec757ee07.zip opensim-SC-657c14c5db8b0c882484926ba76aa64ec757ee07.tar.gz opensim-SC-657c14c5db8b0c882484926ba76aa64ec757ee07.tar.bz2 opensim-SC-657c14c5db8b0c882484926ba76aa64ec757ee07.tar.xz |
Fix up QueryAccess to also check parcels
Diffstat (limited to 'OpenSim/Server')
-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 89832f4..b33b0d5 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -331,10 +331,17 @@ namespace OpenSim.Server.Handlers.Simulation | |||
331 | return; | 331 | return; |
332 | } | 332 | } |
333 | 333 | ||
334 | // m_log.DebugFormat("[AGENT HANDLER]: Received QUERYACCESS with {0}", (string)request["body"]); | ||
335 | OSDMap args = Utils.GetOSDMap((string)request["body"]); | ||
336 | |||
337 | Vector3 position = Vector3.Zero; | ||
338 | if (args.ContainsKey("position")) | ||
339 | position = Vector3.Parse(args["position"].AsString()); | ||
340 | |||
334 | GridRegion destination = new GridRegion(); | 341 | GridRegion destination = new GridRegion(); |
335 | destination.RegionID = regionID; | 342 | destination.RegionID = regionID; |
336 | 343 | ||
337 | bool result = m_SimulationService.QueryAccess(destination, id); | 344 | bool result = m_SimulationService.QueryAccess(destination, id, position); |
338 | 345 | ||
339 | responsedata["int_response_code"] = HttpStatusCode.OK; | 346 | responsedata["int_response_code"] = HttpStatusCode.OK; |
340 | responsedata["str_response_string"] = result.ToString(); | 347 | responsedata["str_response_string"] = result.ToString(); |