From 6551f17966975081ac9b9f4c3b19d33e9d2c69a5 Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 7 May 2008 17:33:57 +0000 Subject: *Added SceneExternalChecks.cs that is used to manage checking the results of multiple functions that register with the class and return the result (usually true/false) based on those results. This is useful for module wanting to put their opinion in decisions such as 'can the user rez this object?' --- .../Modules/World/Permissions/PermissionsModule.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/World') diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 75e9e57..5203b94 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs @@ -140,12 +140,21 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions return false; } - public virtual bool CanRezObject(LLUUID user, LLVector3 position) + public virtual bool CanRezObject(LLUUID user, LLVector3 position, int objectCount) { bool permission = false; + + string reason = "Insufficient permission"; + //Perform ExternalChecks first! + bool results = m_scene.ExternalChecks.ExternalChecksCanRezObject(objectCount, user, position); + if (results == false) + { + return false; + } + ILandObject land = m_scene.LandChannel.GetLandObject(position.X, position.Y); if (land == null) return false; -- cgit v1.1