On login and first HG entrance to a foreign grid, perform query access checks before proceeding.

This commit is contained in:
Justin Clark-Casey (justincc)
2014-07-21 23:53:33 +01:00
parent 3355bedaeb
commit 3c6becd524
5 changed files with 35 additions and 14 deletions

View File

@@ -432,6 +432,13 @@ namespace OpenSim.Services.HypergridService
m_log.DebugFormat("[GATEKEEPER SERVICE]: Launching {0}, Teleport Flags: {1}", aCircuit.Name, loginFlag);
string version;
if (!m_SimulationService.QueryAccess(
destination, aCircuit.AgentID, aCircuit.ServiceURLs["HomeURI"].ToString(),
true, aCircuit.startpos, null, out version, out reason))
return false;
return m_SimulationService.CreateAgent(source, destination, aCircuit, (uint)loginFlag, out reason);
}