aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs1
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Permissions.cs17
2 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 765c1f2..2813acb 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -271,6 +271,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
271 m_scene.Permissions.OnIsGod += IsGod; 271 m_scene.Permissions.OnIsGod += IsGod;
272 m_scene.Permissions.OnIsGridGod += IsGridGod; 272 m_scene.Permissions.OnIsGridGod += IsGridGod;
273 m_scene.Permissions.OnIsAdministrator += IsAdministrator; 273 m_scene.Permissions.OnIsAdministrator += IsAdministrator;
274 m_scene.Permissions.OnIsEstateManager += IsEstateManager;
274 m_scene.Permissions.OnDuplicateObject += CanDuplicateObject; 275 m_scene.Permissions.OnDuplicateObject += CanDuplicateObject;
275 m_scene.Permissions.OnDeleteObject += CanDeleteObject; 276 m_scene.Permissions.OnDeleteObject += CanDeleteObject;
276 m_scene.Permissions.OnEditObject += CanEditObject; 277 m_scene.Permissions.OnEditObject += CanEditObject;
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
index 4d90726..a901cfe 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
@@ -69,6 +69,7 @@ namespace OpenSim.Region.Framework.Scenes
69 public delegate bool IsGodHandler(UUID user, Scene requestFromScene); 69 public delegate bool IsGodHandler(UUID user, Scene requestFromScene);
70 public delegate bool IsGridGodHandler(UUID user, Scene requestFromScene); 70 public delegate bool IsGridGodHandler(UUID user, Scene requestFromScene);
71 public delegate bool IsAdministratorHandler(UUID user); 71 public delegate bool IsAdministratorHandler(UUID user);
72 public delegate bool IsEstateManagerHandler(UUID user);
72 public delegate bool EditParcelHandler(UUID user, ILandObject parcel, Scene scene); 73 public delegate bool EditParcelHandler(UUID user, ILandObject parcel, Scene scene);
73 public delegate bool EditParcelPropertiesHandler(UUID user, ILandObject parcel, GroupPowers p, Scene scene, bool allowManager); 74 public delegate bool EditParcelPropertiesHandler(UUID user, ILandObject parcel, GroupPowers p, Scene scene, bool allowManager);
74 public delegate bool SellParcelHandler(UUID user, ILandObject parcel, Scene scene); 75 public delegate bool SellParcelHandler(UUID user, ILandObject parcel, Scene scene);
@@ -137,6 +138,7 @@ namespace OpenSim.Region.Framework.Scenes
137 public event IsGodHandler OnIsGod; 138 public event IsGodHandler OnIsGod;
138 public event IsGridGodHandler OnIsGridGod; 139 public event IsGridGodHandler OnIsGridGod;
139 public event IsAdministratorHandler OnIsAdministrator; 140 public event IsAdministratorHandler OnIsAdministrator;
141 public event IsEstateManagerHandler OnIsEstateManager;
140// public event EditParcelHandler OnEditParcel; 142// public event EditParcelHandler OnEditParcel;
141 public event EditParcelPropertiesHandler OnEditParcelProperties; 143 public event EditParcelPropertiesHandler OnEditParcelProperties;
142 public event SellParcelHandler OnSellParcel; 144 public event SellParcelHandler OnSellParcel;
@@ -761,6 +763,21 @@ namespace OpenSim.Region.Framework.Scenes
761 } 763 }
762 #endregion 764 #endregion
763 765
766 public bool IsEstateManager(UUID user)
767 {
768 IsEstateManagerHandler handler = OnIsEstateManager;
769 if (handler != null)
770 {
771 Delegate[] list = handler.GetInvocationList();
772 foreach (IsEstateManagerHandler h in list)
773 {
774 if (h(user) == false)
775 return false;
776 }
777 }
778 return true;
779 }
780
764 #region EDIT PARCEL 781 #region EDIT PARCEL
765 782
766 public bool CanEditParcelProperties(UUID user, ILandObject parcel, GroupPowers p, bool allowManager) 783 public bool CanEditParcelProperties(UUID user, ILandObject parcel, GroupPowers p, bool allowManager)