From e1750c8c7c7acf60bf4db0dd548987e96fcce1f4 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 12 May 2009 13:41:30 +0000 Subject: [PATCH] Hook up deed permissions checking to the land module --- OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 1dc33e1cdd..ee31feb232 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -1132,13 +1132,15 @@ namespace OpenSim.Region.CoreModules.World.Land void handleParcelDeedToGroup(int parcelLocalID, UUID groupID, IClientAPI remote_client) { - // TODO: May want to validate that the group id is valid and that the remote client has the right to deed ILandObject land; lock (m_landList) { m_landList.TryGetValue(parcelLocalID, out land); } + if (!m_scene.Permissions.CanDeedParcel(remote_client.AgentId, land)) + return; + if (land != null) { land.deedToGroup(groupID);