aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 1dc33e1..ee31feb 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
1132 1132
1133 void handleParcelDeedToGroup(int parcelLocalID, UUID groupID, IClientAPI remote_client) 1133 void handleParcelDeedToGroup(int parcelLocalID, UUID groupID, IClientAPI remote_client)
1134 { 1134 {
1135 // TODO: May want to validate that the group id is valid and that the remote client has the right to deed
1136 ILandObject land; 1135 ILandObject land;
1137 lock (m_landList) 1136 lock (m_landList)
1138 { 1137 {
1139 m_landList.TryGetValue(parcelLocalID, out land); 1138 m_landList.TryGetValue(parcelLocalID, out land);
1140 } 1139 }
1141 1140
1141 if (!m_scene.Permissions.CanDeedParcel(remote_client.AgentId, land))
1142 return;
1143
1142 if (land != null) 1144 if (land != null)
1143 { 1145 {
1144 land.deedToGroup(groupID); 1146 land.deedToGroup(groupID);