Little bug fix in HasGroupAccess, to properly store the case "true" in the cache.

0.7.4.1
Snoopy Pfeffer 2012-04-05 10:02:18 +02:00
parent a5d6b624f6
commit 600a86bcae
1 changed files with 2 additions and 5 deletions

View File

@ -446,7 +446,7 @@ namespace OpenSim.Region.CoreModules.World.Land
{ {
if (d.GroupID == LandData.GroupID) if (d.GroupID == LandData.GroupID)
{ {
m_groupMemberCache.Add(avatar, false, m_groupMemberCacheTimeout); m_groupMemberCache.Add(avatar, true, m_groupMemberCacheTimeout);
return true; return true;
} }
} }
@ -454,10 +454,7 @@ namespace OpenSim.Region.CoreModules.World.Land
return false; return false;
} }
if (!sp.ControllingClient.IsGroupMember(LandData.GroupID)) return sp.ControllingClient.IsGroupMember(LandData.GroupID);
return false;
return true;
} }
return false; return false;
} }