aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorSnoopy Pfeffer2012-04-05 10:02:18 +0200
committerSnoopy Pfeffer2012-04-05 10:02:18 +0200
commit600a86bcaeb78089165f7d778661edbfdface047 (patch)
tree7f3611e581ca820cfecb9b42dca37ac05c1f5a65 /OpenSim/Region/CoreModules
parentSimplify group access checks and break them out into a separate method. (diff)
downloadopensim-SC_OLD-600a86bcaeb78089165f7d778661edbfdface047.zip
opensim-SC_OLD-600a86bcaeb78089165f7d778661edbfdface047.tar.gz
opensim-SC_OLD-600a86bcaeb78089165f7d778661edbfdface047.tar.bz2
opensim-SC_OLD-600a86bcaeb78089165f7d778661edbfdface047.tar.xz
Little bug fix in HasGroupAccess, to properly store the case "true" in the cache.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index c532d0d..ced7b52 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -446,7 +446,7 @@ namespace OpenSim.Region.CoreModules.World.Land
446 { 446 {
447 if (d.GroupID == LandData.GroupID) 447 if (d.GroupID == LandData.GroupID)
448 { 448 {
449 m_groupMemberCache.Add(avatar, false, m_groupMemberCacheTimeout); 449 m_groupMemberCache.Add(avatar, true, m_groupMemberCacheTimeout);
450 return true; 450 return true;
451 } 451 }
452 } 452 }
@@ -454,10 +454,7 @@ namespace OpenSim.Region.CoreModules.World.Land
454 return false; 454 return false;
455 } 455 }
456 456
457 if (!sp.ControllingClient.IsGroupMember(LandData.GroupID)) 457 return sp.ControllingClient.IsGroupMember(LandData.GroupID);
458 return false;
459
460 return true;
461 } 458 }
462 return false; 459 return false;
463 } 460 }