aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation/AgentHandlers.cs')
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index 448e321..616aef3 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -346,10 +346,17 @@ namespace OpenSim.Server.Handlers.Simulation
346 GridRegion destination = new GridRegion(); 346 GridRegion destination = new GridRegion();
347 destination.RegionID = regionID; 347 destination.RegionID = regionID;
348 348
349 bool result = m_SimulationService.QueryAccess(destination, id, position); 349 string reason;
350 bool result = m_SimulationService.QueryAccess(destination, id, position, out reason);
350 351
351 responsedata["int_response_code"] = HttpStatusCode.OK; 352 responsedata["int_response_code"] = HttpStatusCode.OK;
352 responsedata["str_response_string"] = result.ToString(); 353
354 OSDMap resp = new OSDMap(2);
355
356 resp["success"] = OSD.FromBoolean(result);
357 resp["reason"] = OSD.FromString(reason);
358
359 responsedata["str_response_string"] = OSDParser.SerializeJsonString(resp);
353 } 360 }
354 361
355 protected virtual void DoAgentGet(Hashtable request, Hashtable responsedata, UUID id, UUID regionID) 362 protected virtual void DoAgentGet(Hashtable request, Hashtable responsedata, UUID id, UUID regionID)