Little bug fix in HasGroupAccess, to properly store the case "true" in the cache.
parent
a5d6b624f6
commit
600a86bcae
|
@ -446,7 +446,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
{
|
||||
if (d.GroupID == LandData.GroupID)
|
||||
{
|
||||
m_groupMemberCache.Add(avatar, false, m_groupMemberCacheTimeout);
|
||||
m_groupMemberCache.Add(avatar, true, m_groupMemberCacheTimeout);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -454,10 +454,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!sp.ControllingClient.IsGroupMember(LandData.GroupID))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return sp.ControllingClient.IsGroupMember(LandData.GroupID);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue