diff options
author | Melanie Thielker | 2009-05-12 13:41:30 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-12 13:41:30 +0000 |
commit | e1750c8c7c7acf60bf4db0dd548987e96fcce1f4 (patch) | |
tree | 73fc1cd4fedd85fbd560b459135d65a987be1931 | |
parent | Add permission mechanisms for group deeding land (diff) | |
download | opensim-SC_OLD-e1750c8c7c7acf60bf4db0dd548987e96fcce1f4.zip opensim-SC_OLD-e1750c8c7c7acf60bf4db0dd548987e96fcce1f4.tar.gz opensim-SC_OLD-e1750c8c7c7acf60bf4db0dd548987e96fcce1f4.tar.bz2 opensim-SC_OLD-e1750c8c7c7acf60bf4db0dd548987e96fcce1f4.tar.xz |
Hook up deed permissions checking to the land module
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 4 |
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); |