From 0e1d28a86277537ead2f35c8a5eefc7dbd596d8a Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 27 Jan 2011 03:05:33 +0100 Subject: Clear user account cache before checking flags on login. This will make AV and other bannable flags work in this case. --- OpenSim/Region/Framework/Scenes/Scene.cs | 3 +++ 1 file changed, 3 insertions(+) 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 //On login test land permisions if (vialogin) { + IUserAccountCacheModule cache = RequestModuleInterface(); + if (cache != null) + cache.Remove(agent.firstname + " " + agent.lastname); if (!TestLandRestrictions(agent.AgentID, out reason, ref agent.startpos.X, ref agent.startpos.Y)) { m_log.DebugFormat("[CONNECTION BEGIN]: Denying access to {0} due to no land access", agent.AgentID.ToString()); -- cgit v1.1