Clear user account cache before checking flags on login. This will make AV
and other bannable flags work in this case.avinationmerge
parent
dd1980c24c
commit
0e1d28a862
|
@ -3408,6 +3408,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
//On login test land permisions
|
||||
if (vialogin)
|
||||
{
|
||||
IUserAccountCacheModule cache = RequestModuleInterface<IUserAccountCacheModule>();
|
||||
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());
|
||||
|
|
Loading…
Reference in New Issue