diff options
author | UbitUmarov | 2017-01-22 23:05:39 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-22 23:05:39 +0000 |
commit | c673ef7e3cd5d9bb4d06094229d5a0647f49a36e (patch) | |
tree | 6d4db4cc8b12b6491e6c0c4bc893ec38f4958c64 /OpenSim/Region/CoreModules | |
parent | don't let part lastowner be the group (diff) | |
download | opensim-SC-c673ef7e3cd5d9bb4d06094229d5a0647f49a36e.zip opensim-SC-c673ef7e3cd5d9bb4d06094229d5a0647f49a36e.tar.gz opensim-SC-c673ef7e3cd5d9bb4d06094229d5a0647f49a36e.tar.bz2 opensim-SC-c673ef7e3cd5d9bb4d06094229d5a0647f49a36e.tar.xz |
replace calls to SOG.GetEffectivePermissions() by the new SOG.EffectiveOwnerPerms, some of those inline permissions checks should be reviewed and pass by permissions module
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 3aca741..8c0edc8 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -1650,7 +1650,7 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
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 (obj.OwnerID == previousOwner && obj.GroupID == UUID.Zero && |
1653 | (obj.GetEffectivePermissions() & (uint)(OpenSim.Framework.PermissionMask.Transfer)) != 0) | 1653 | (obj.EffectiveOwnerPerms & (uint)(OpenSim.Framework.PermissionMask.Transfer)) != 0) |
1654 | m_BuySellModule.BuyObject(sp.ControllingClient, UUID.Zero, obj.LocalId, 1, 0); | 1654 | m_BuySellModule.BuyObject(sp.ControllingClient, UUID.Zero, obj.LocalId, 1, 0); |
1655 | } | 1655 | } |
1656 | } | 1656 | } |
diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs index 4542bbf..504a584 100644 --- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs | |||
@@ -127,7 +127,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell | |||
127 | switch (saleType) | 127 | switch (saleType) |
128 | { | 128 | { |
129 | case 1: // Sell as original (in-place sale) | 129 | case 1: // Sell as original (in-place sale) |
130 | uint effectivePerms = group.GetEffectivePermissions(); | 130 | uint effectivePerms = group.EffectiveOwnerPerms; |
131 | 131 | ||
132 | if ((effectivePerms & (uint)PermissionMask.Transfer) == 0) | 132 | if ((effectivePerms & (uint)PermissionMask.Transfer) == 0) |
133 | { | 133 | { |
@@ -174,7 +174,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell | |||
174 | string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(group); | 174 | string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(group); |
175 | group.AbsolutePosition = originalPosition; | 175 | group.AbsolutePosition = originalPosition; |
176 | 176 | ||
177 | uint perms = group.GetEffectivePermissions(); | 177 | uint perms = group.EffectiveOwnerPerms; |
178 | 178 | ||
179 | if ((perms & (uint)PermissionMask.Transfer) == 0) | 179 | if ((perms & (uint)PermissionMask.Transfer) == 0) |
180 | { | 180 | { |