mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Hook up deed permissions checking to the land module
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user