aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land
diff options
context:
space:
mode:
authorUbitUmarov2017-03-30 17:39:21 +0100
committerUbitUmarov2017-03-30 17:39:21 +0100
commit9a01fddd1cefea0508b6b1616771e6ef8eabef87 (patch)
tree2e98a32008bb69965b9be3ef417b56cb60a49e25 /OpenSim/Region/CoreModules/World/Land
parentmantis 8131: make the new Offline IM code optional and disabled by default, s... (diff)
downloadopensim-SC_OLD-9a01fddd1cefea0508b6b1616771e6ef8eabef87.zip
opensim-SC_OLD-9a01fddd1cefea0508b6b1616771e6ef8eabef87.tar.gz
opensim-SC_OLD-9a01fddd1cefea0508b6b1616771e6ef8eabef87.tar.bz2
opensim-SC_OLD-9a01fddd1cefea0508b6b1616771e6ef8eabef87.tar.xz
add CanSellObject() permitions check functions
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index 9d84e66..2b5cb31 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -1649,8 +1649,7 @@ namespace OpenSim.Region.CoreModules.World.Land
1649 { 1649 {
1650 foreach (SceneObjectGroup obj in primsOverMe) 1650 foreach (SceneObjectGroup obj in primsOverMe)
1651 { 1651 {
1652 if (obj.OwnerID == previousOwner && obj.GroupID == UUID.Zero && 1652 if(m_scene.Permissions.CanSellObject(previousOwner,obj, (byte)SaleType.Original))
1653 (obj.EffectiveOwnerPerms & (uint)(OpenSim.Framework.PermissionMask.Transfer)) != 0)
1654 m_BuySellModule.BuyObject(sp.ControllingClient, UUID.Zero, obj.LocalId, 1, 0); 1653 m_BuySellModule.BuyObject(sp.ControllingClient, UUID.Zero, obj.LocalId, 1, 0);
1655 } 1654 }
1656 } 1655 }