diff options
author | Melanie | 2011-05-14 17:24:22 +0200 |
---|---|---|
committer | Melanie | 2011-05-14 17:24:22 +0200 |
commit | d773d89145141d2f81bf018f4f2bb4502329788c (patch) | |
tree | 4fd72eb151721602f2ad9bd5c549900dccf2ddb6 /OpenSim/Region/CoreModules | |
parent | Fix up a linking issue (diff) | |
download | opensim-SC_OLD-d773d89145141d2f81bf018f4f2bb4502329788c.zip opensim-SC_OLD-d773d89145141d2f81bf018f4f2bb4502329788c.tar.gz opensim-SC_OLD-d773d89145141d2f81bf018f4f2bb4502329788c.tar.bz2 opensim-SC_OLD-d773d89145141d2f81bf018f4f2bb4502329788c.tar.xz |
Plug a hole that allows selling a copy of no copy objects when using hacked god mode to fool the viewer into thinking it can set that sale type
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs index be399ff..516189f 100644 --- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs | |||
@@ -179,6 +179,13 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell | |||
179 | return false; | 179 | return false; |
180 | } | 180 | } |
181 | 181 | ||
182 | if ((perms & (uint)PermissionMask.Copy) == 0) | ||
183 | { | ||
184 | if (m_dialogModule != null) | ||
185 | m_dialogModule.SendAlertToUser(remoteClient, "This sale has been blocked by the permissions system"); | ||
186 | return false; | ||
187 | } | ||
188 | |||
182 | AssetBase asset = m_scene.CreateAsset( | 189 | AssetBase asset = m_scene.CreateAsset( |
183 | group.GetPartName(localID), | 190 | group.GetPartName(localID), |
184 | group.GetPartDescription(localID), | 191 | group.GetPartDescription(localID), |