Hook up deed permissions checking to the land module
parent
32ac388363
commit
e1750c8c7c
OpenSim/Region/CoreModules/World/Land
|
@ -1132,13 +1132,15 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
|
|
||||||
void handleParcelDeedToGroup(int parcelLocalID, UUID groupID, IClientAPI remote_client)
|
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;
|
ILandObject land;
|
||||||
lock (m_landList)
|
lock (m_landList)
|
||||||
{
|
{
|
||||||
m_landList.TryGetValue(parcelLocalID, out land);
|
m_landList.TryGetValue(parcelLocalID, out land);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_scene.Permissions.CanDeedParcel(remote_client.AgentId, land))
|
||||||
|
return;
|
||||||
|
|
||||||
if (land != null)
|
if (land != null)
|
||||||
{
|
{
|
||||||
land.deedToGroup(groupID);
|
land.deedToGroup(groupID);
|
||||||
|
|
Loading…
Reference in New Issue