aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Permissions.cs')
-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 985179c..29a6cd2 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs
@@ -67,6 +67,7 @@ namespace OpenSim.Region.Framework.Scenes
67 public delegate bool SellParcelHandler(UUID user, ILandObject parcel, Scene scene); 67 public delegate bool SellParcelHandler(UUID user, ILandObject parcel, Scene scene);
68 public delegate bool AbandonParcelHandler(UUID user, ILandObject parcel, Scene scene); 68 public delegate bool AbandonParcelHandler(UUID user, ILandObject parcel, Scene scene);
69 public delegate bool ReclaimParcelHandler(UUID user, ILandObject parcel, Scene scene); 69 public delegate bool ReclaimParcelHandler(UUID user, ILandObject parcel, Scene scene);
70 public delegate bool DeedParcelHandler(UUID user, ILandObject parcel, Scene scene);
70 public delegate bool BuyLandHandler(UUID user, ILandObject parcel, Scene scene); 71 public delegate bool BuyLandHandler(UUID user, ILandObject parcel, Scene scene);
71 public delegate bool LinkObjectHandler(UUID user, UUID objectID); 72 public delegate bool LinkObjectHandler(UUID user, UUID objectID);
72 public delegate bool DelinkObjectHandler(UUID user, UUID objectID); 73 public delegate bool DelinkObjectHandler(UUID user, UUID objectID);
@@ -122,6 +123,7 @@ namespace OpenSim.Region.Framework.Scenes
122 public event SellParcelHandler OnSellParcel; 123 public event SellParcelHandler OnSellParcel;
123 public event AbandonParcelHandler OnAbandonParcel; 124 public event AbandonParcelHandler OnAbandonParcel;
124 public event ReclaimParcelHandler OnReclaimParcel; 125 public event ReclaimParcelHandler OnReclaimParcel;
126 public event DeedParcelHandler OnDeedParcel;
125 public event BuyLandHandler OnBuyLand; 127 public event BuyLandHandler OnBuyLand;
126 public event LinkObjectHandler OnLinkObject; 128 public event LinkObjectHandler OnLinkObject;
127 public event DelinkObjectHandler OnDelinkObject; 129 public event DelinkObjectHandler OnDelinkObject;
@@ -696,6 +698,21 @@ namespace OpenSim.Region.Framework.Scenes
696 return true; 698 return true;
697 } 699 }
698 700
701 public bool CanDeedParcel(UUID user, ILandObject parcel)
702 {
703 DeedParcelHandler handler = OnDeedParcel;
704 if (handler != null)
705 {
706 Delegate[] list = handler.GetInvocationList();
707 foreach (DeedParcelHandler h in list)
708 {
709 if (h(user, parcel, m_scene) == false)
710 return false;
711 }
712 }
713 return true;
714 }
715
699 public bool CanBuyLand(UUID user, ILandObject parcel) 716 public bool CanBuyLand(UUID user, ILandObject parcel)
700 { 717 {
701 BuyLandHandler handler = OnBuyLand; 718 BuyLandHandler handler = OnBuyLand;