aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2011-05-09 01:12:21 +0200
committerMelanie2011-05-09 01:12:21 +0200
commitc164be1ee56399a0c87ba5a70453a53f1d90e988 (patch)
treef12a5d31a1f91a6b82db2b39e188dbee688504a2
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC-c164be1ee56399a0c87ba5a70453a53f1d90e988.zip
opensim-SC-c164be1ee56399a0c87ba5a70453a53f1d90e988.tar.gz
opensim-SC-c164be1ee56399a0c87ba5a70453a53f1d90e988.tar.bz2
opensim-SC-c164be1ee56399a0c87ba5a70453a53f1d90e988.tar.xz
Fix bans so the region owner and estate managers can't be banned by renters
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index fe6b83a..0fbc93c 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -451,6 +451,9 @@ namespace OpenSim.Region.CoreModules.World.Land
451 if (m_scene.Permissions.IsAdministrator(avatar)) 451 if (m_scene.Permissions.IsAdministrator(avatar))
452 return false; 452 return false;
453 453
454 if (m_scene.RegionInfo.EstateSettings.IsEstateManager(avatar))
455 return false;
456
454 if ((LandData.Flags & (uint) ParcelFlags.UseBanList) > 0) 457 if ((LandData.Flags & (uint) ParcelFlags.UseBanList) > 0)
455 { 458 {
456 if (LandData.ParcelAccessList.FindIndex( 459 if (LandData.ParcelAccessList.FindIndex(
@@ -472,6 +475,9 @@ namespace OpenSim.Region.CoreModules.World.Land
472 if (m_scene.Permissions.IsAdministrator(avatar)) 475 if (m_scene.Permissions.IsAdministrator(avatar))
473 return false; 476 return false;
474 477
478 if (m_scene.RegionInfo.EstateSettings.IsEstateManager(avatar))
479 return false;
480
475 if ((LandData.Flags & (uint) ParcelFlags.UseAccessList) > 0) 481 if ((LandData.Flags & (uint) ParcelFlags.UseAccessList) > 0)
476 { 482 {
477 if (LandData.ParcelAccessList.FindIndex( 483 if (LandData.ParcelAccessList.FindIndex(