aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Interfaces/IEstateModule.cs1
-rw-r--r--OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs12
2 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IEstateModule.cs b/OpenSim/Region/Environment/Interfaces/IEstateModule.cs
index 070b804..bfe3591 100644
--- a/OpenSim/Region/Environment/Interfaces/IEstateModule.cs
+++ b/OpenSim/Region/Environment/Interfaces/IEstateModule.cs
@@ -34,5 +34,6 @@ namespace OpenSim.Region.Environment.Interfaces
34 public interface IEstateModule : IRegionModule 34 public interface IEstateModule : IRegionModule
35 { 35 {
36 uint GetRegionFlags(); 36 uint GetRegionFlags();
37 bool IsManager(LLUUID avatarID);
37 } 38 }
38} 39}
diff --git a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
index c5c0370..f2b6ae0 100644
--- a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
@@ -796,5 +796,17 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
796 796
797 return (uint)flags; 797 return (uint)flags;
798 } 798 }
799
800 public bool IsManager(LLUUID avatarID)
801 {
802 if (avatarID == m_scene.RegionInfo.MasterAvatarAssignedUUID)
803 return true;
804
805 List<LLUUID> ems = new List<LLUUID>(m_scene.RegionInfo.EstateSettings.EstateManagers);
806 if(ems.Contains(avatarID))
807 return true;
808
809 return false;
810 }
799 } 811 }
800} 812}