aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index eb150d9..4bf2477 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -281,6 +281,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
281 return; 281 return;
282 } 282 }
283 283
284 if (!m_aScene.SimulationService.QueryAccess(finalDestination, sp.ControllingClient.AgentId))
285 {
286 sp.ControllingClient.SendTeleportFailed("The destination region has refused access");
287 return;
288 }
289
284 sp.ControllingClient.SendTeleportStart(teleportFlags); 290 sp.ControllingClient.SendTeleportStart(teleportFlags);
285 291
286 // the avatar.Close below will clear the child region list. We need this below for (possibly) 292 // the avatar.Close below will clear the child region list. We need this below for (possibly)