aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMelanie2011-01-27 03:05:33 +0100
committerMelanie2011-01-27 03:05:33 +0100
commit0e1d28a86277537ead2f35c8a5eefc7dbd596d8a (patch)
tree58631479ca3e74eb5faef41e75590428a2979221 /OpenSim/Region/Framework/Scenes/Scene.cs
parentAdd an interface for a region's user account cache (diff)
downloadopensim-SC-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.zip
opensim-SC-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.tar.gz
opensim-SC-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.tar.bz2
opensim-SC-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.tar.xz
Clear user account cache before checking flags on login. This will make AV
and other bannable flags work in this case.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f85db84..d9850d6 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3408,6 +3408,9 @@ namespace OpenSim.Region.Framework.Scenes
3408 //On login test land permisions 3408 //On login test land permisions
3409 if (vialogin) 3409 if (vialogin)
3410 { 3410 {
3411 IUserAccountCacheModule cache = RequestModuleInterface<IUserAccountCacheModule>();
3412 if (cache != null)
3413 cache.Remove(agent.firstname + " " + agent.lastname);
3411 if (!TestLandRestrictions(agent.AgentID, out reason, ref agent.startpos.X, ref agent.startpos.Y)) 3414 if (!TestLandRestrictions(agent.AgentID, out reason, ref agent.startpos.X, ref agent.startpos.Y))
3412 { 3415 {
3413 m_log.DebugFormat("[CONNECTION BEGIN]: Denying access to {0} due to no land access", agent.AgentID.ToString()); 3416 m_log.DebugFormat("[CONNECTION BEGIN]: Denying access to {0} due to no land access", agent.AgentID.ToString());