diff options
author | Melanie Thielker | 2008-10-08 02:45:23 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-08 02:45:23 +0000 |
commit | c4d741180f0c69db90c8ccb2a06857656e7b1082 (patch) | |
tree | 6be3f8ebc4881178f2f4f8adb1c47884e3ac236e /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |
parent | Mantis#2352. Thank you kindly, Jonc for a patch that: (diff) | |
download | opensim-SC_OLD-c4d741180f0c69db90c8ccb2a06857656e7b1082.zip opensim-SC_OLD-c4d741180f0c69db90c8ccb2a06857656e7b1082.tar.gz opensim-SC_OLD-c4d741180f0c69db90c8ccb2a06857656e7b1082.tar.bz2 opensim-SC_OLD-c4d741180f0c69db90c8ccb2a06857656e7b1082.tar.xz |
Add some permissions checks and fixes
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 2 |
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; |