diff options
author | UbitUmarov | 2017-01-25 16:57:46 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-25 16:57:46 +0000 |
commit | 74ac2034e00286af27d309248d4add2c2a073309 (patch) | |
tree | 1da1c60bfc4f11c5e713f2b0e26e94a643fde35b /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | fix a bug in CanCopyObjectInventory; add CanDoObjectInvToObjectInv ( not wired) (diff) | |
download | opensim-SC-74ac2034e00286af27d309248d4add2c2a073309.zip opensim-SC-74ac2034e00286af27d309248d4add2c2a073309.tar.gz opensim-SC-74ac2034e00286af27d309248d4add2c2a073309.tar.bz2 opensim-SC-74ac2034e00286af27d309248d4add2c2a073309.tar.xz |
make use of CanDoObjectInvToObjectInv
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index a1eb721..29666d5 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -1461,28 +1461,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1461 | return; | 1461 | return; |
1462 | } | 1462 | } |
1463 | 1463 | ||
1464 | // Can't transfer this | 1464 | if(!Permissions.CanDoObjectInvToObjectInv(srcTaskItem, part, destPart)) |
1465 | // | ||
1466 | if (part.OwnerID != destPart.OwnerID && (srcTaskItem.CurrentPermissions & (uint)PermissionMask.Transfer) == 0) | ||
1467 | return; | ||
1468 | |||
1469 | bool overrideNoMod = false; | ||
1470 | if ((part.GetEffectiveObjectFlags() & (uint)PrimFlags.AllowInventoryDrop) != 0) | ||
1471 | overrideNoMod = true; | ||
1472 | |||
1473 | if (part.OwnerID != destPart.OwnerID && (destPart.GetEffectiveObjectFlags() & (uint)PrimFlags.AllowInventoryDrop) == 0) | ||
1474 | { | ||
1475 | // object cannot copy items to an object owned by a different owner | ||
1476 | // unless llAllowInventoryDrop has been called | ||
1477 | |||
1478 | return; | 1465 | return; |
1479 | } | ||
1480 | |||
1481 | // must have both move and modify permission to put an item in an object | ||
1482 | if (((part.OwnerMask & (uint)PermissionMask.Modify) == 0) && (!overrideNoMod)) | ||
1483 | { | ||
1484 | return; | ||
1485 | } | ||
1486 | 1466 | ||
1487 | TaskInventoryItem destTaskItem = new TaskInventoryItem(); | 1467 | TaskInventoryItem destTaskItem = new TaskInventoryItem(); |
1488 | 1468 | ||