aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2011-05-14 17:24:22 +0200
committerMelanie2011-05-14 17:24:22 +0200
commitd773d89145141d2f81bf018f4f2bb4502329788c (patch)
tree4fd72eb151721602f2ad9bd5c549900dccf2ddb6 /OpenSim/Region
parentFix up a linking issue (diff)
downloadopensim-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 '')
-rw-r--r--OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs7
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),