diff options
author | Melanie | 2011-01-27 03:05:33 +0100 |
---|---|---|
committer | Melanie | 2011-01-27 03:05:33 +0100 |
commit | 0e1d28a86277537ead2f35c8a5eefc7dbd596d8a (patch) | |
tree | 58631479ca3e74eb5faef41e75590428a2979221 /OpenSim/Region/Framework/Scenes | |
parent | Add an interface for a region's user account cache (diff) | |
download | opensim-SC_OLD-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.zip opensim-SC_OLD-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.tar.gz opensim-SC_OLD-0e1d28a86277537ead2f35c8a5eefc7dbd596d8a.tar.bz2 opensim-SC_OLD-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 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 3 |
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()); |