aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-12-12 10:03:07 +0000
committerUbitUmarov2015-12-12 10:03:07 +0000
commit0934e1cf71ee437829f47156af692bc59cf09947 (patch)
treeb7961123772cac2d2e73554c9e0b66bef798b790 /OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
parentchange vivox url from https:// to http:// still another (diff)
downloadopensim-SC-0934e1cf71ee437829f47156af692bc59cf09947.zip
opensim-SC-0934e1cf71ee437829f47156af692bc59cf09947.tar.gz
opensim-SC-0934e1cf71ee437829f47156af692bc59cf09947.tar.bz2
opensim-SC-0934e1cf71ee437829f47156af692bc59cf09947.tar.xz
add IsEstateManager check to Permissions
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Permissions.cs17
1 files changed, 17 insertions, 0 deletions
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)