aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
diff options
context:
space:
mode:
authorMelanie2011-01-28 03:07:25 +0100
committerMelanie2011-01-28 03:07:25 +0100
commit657c14c5db8b0c882484926ba76aa64ec757ee07 (patch)
tree595a97b1a82144acade004772d65e018ca93426c /OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
parentComment a very spammy debug message that was being output directly to console. (diff)
downloadopensim-SC_OLD-657c14c5db8b0c882484926ba76aa64ec757ee07.zip
opensim-SC_OLD-657c14c5db8b0c882484926ba76aa64ec757ee07.tar.gz
opensim-SC_OLD-657c14c5db8b0c882484926ba76aa64ec757ee07.tar.bz2
opensim-SC_OLD-657c14c5db8b0c882484926ba76aa64ec757ee07.tar.xz
Fix up QueryAccess to also check parcels
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation/AgentHandlers.cs')
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs9
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();