Add some permissions checks and fixes

This commit is contained in:
Melanie Thielker
2008-10-08 02:45:23 +00:00
parent e4fc55f71e
commit c4d741180f
4 changed files with 72 additions and 11 deletions

View File

@@ -716,7 +716,7 @@ namespace OpenSim.Region.Environment.Scenes
foreach (TaskInventoryItem item in m_taskInventory.Values)
{
if (item.InvType == 6)
if (item.InvType == 6 && (item.CurrentPermissions & 7) != 0)
{
if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
item.CurrentPermissions &= ~(uint)PermissionMask.Copy;