From ca75c101ecf908bdbf6a7993082d77ae6ed9518c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 24 May 2009 17:20:47 +0000 Subject: Allow the perms module to inspect and modify the list of objects to return for more fine-grained control --- OpenSim/Region/Framework/Scenes/Scene.Permissions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs index 731f124..b6f3fee 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs @@ -79,7 +79,7 @@ namespace OpenSim.Region.Framework.Scenes public delegate bool CopyUserInventoryHandler(UUID itemID, UUID userID); public delegate bool DeleteUserInventoryHandler(UUID itemID, UUID userID); public delegate bool TeleportHandler(UUID userID, Scene scene); - public delegate bool UseObjectReturnHandler(ILandObject landData, uint type, IClientAPI client, Scene scene); + public delegate bool UseObjectReturnHandler(ILandObject landData, uint type, IClientAPI client, List retlist, Scene scene); #endregion public class ScenePermissions @@ -913,7 +913,7 @@ namespace OpenSim.Region.Framework.Scenes return true; } - public bool CanUseObjectReturn(ILandObject landData, uint type , IClientAPI client) + public bool CanUseObjectReturn(ILandObject landData, uint type , IClientAPI client, List retlist) { UseObjectReturnHandler handler = OnUseObjectReturn; if (handler != null) @@ -921,7 +921,7 @@ namespace OpenSim.Region.Framework.Scenes Delegate[] list = handler.GetInvocationList(); foreach (UseObjectReturnHandler h in list) { - if (h(landData, type, client, m_scene) == false) + if (h(landData, type, client, retlist, m_scene) == false) return false; } } -- cgit v1.1