aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-08 02:45:23 +0000
committerMelanie Thielker2008-10-08 02:45:23 +0000
commitc4d741180f0c69db90c8ccb2a06857656e7b1082 (patch)
tree6be3f8ebc4881178f2f4f8adb1c47884e3ac236e /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
parentMantis#2352. Thank you kindly, Jonc for a patch that: (diff)
downloadopensim-SC-c4d741180f0c69db90c8ccb2a06857656e7b1082.zip
opensim-SC-c4d741180f0c69db90c8ccb2a06857656e7b1082.tar.gz
opensim-SC-c4d741180f0c69db90c8ccb2a06857656e7b1082.tar.bz2
opensim-SC-c4d741180f0c69db90c8ccb2a06857656e7b1082.tar.xz
Add some permissions checks and fixes
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 34e5305..d4346e4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -716,7 +716,7 @@ namespace OpenSim.Region.Environment.Scenes
716 716
717 foreach (TaskInventoryItem item in m_taskInventory.Values) 717 foreach (TaskInventoryItem item in m_taskInventory.Values)
718 { 718 {
719 if (item.InvType == 6) 719 if (item.InvType == 6 && (item.CurrentPermissions & 7) != 0)
720 { 720 {
721 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0) 721 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
722 item.CurrentPermissions &= ~(uint)PermissionMask.Copy; 722 item.CurrentPermissions &= ~(uint)PermissionMask.Copy;