aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index dec493b..503b81a 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -4013,28 +4013,28 @@ namespace OpenSim.Region.Framework.Scenes
4013 } 4013 }
4014 } 4014 }
4015 4015
4016 if (RegionInfo.EstateSettings != null)
4017 {
4018 if (RegionInfo.EstateSettings.IsBanned(agent.AgentID))
4019 {
4020 m_log.WarnFormat("[CONNECTION BEGIN]: Denied access to: {0} ({1} {2}) at {3} because the user is on the banlist",
4021 agent.AgentID, agent.firstname, agent.lastname, RegionInfo.RegionName);
4022 reason = String.Format("Denied access to region {0}: You have been banned from that region.",
4023 RegionInfo.RegionName);
4024 return false;
4025 }
4026 }
4027 else
4028 {
4029 m_log.ErrorFormat("[CONNECTION BEGIN]: Estate Settings is null!");
4030 }
4031
4032 // We only test the things below when we want to cut off 4016 // We only test the things below when we want to cut off
4033 // child agents from being present in the scene for which their root 4017 // child agents from being present in the scene for which their root
4034 // agent isn't allowed. Otherwise, we allow child agents. The test for 4018 // agent isn't allowed. Otherwise, we allow child agents. The test for
4035 // the root is done elsewhere (QueryAccess) 4019 // the root is done elsewhere (QueryAccess)
4036 if (!bypassAccessControl) 4020 if (!bypassAccessControl)
4037 { 4021 {
4022 if (RegionInfo.EstateSettings != null)
4023 {
4024 if (RegionInfo.EstateSettings.IsBanned(agent.AgentID))
4025 {
4026 m_log.WarnFormat("[CONNECTION BEGIN]: Denied access to: {0} ({1} {2}) at {3} because the user is on the banlist",
4027 agent.AgentID, agent.firstname, agent.lastname, RegionInfo.RegionName);
4028 reason = String.Format("Denied access to region {0}: You have been banned from that region.",
4029 RegionInfo.RegionName);
4030 return false;
4031 }
4032 }
4033 else
4034 {
4035 m_log.ErrorFormat("[CONNECTION BEGIN]: Estate Settings is null!");
4036 }
4037
4038 List<UUID> agentGroups = new List<UUID>(); 4038 List<UUID> agentGroups = new List<UUID>();
4039 4039
4040 if (m_groupsModule != null) 4040 if (m_groupsModule != null)