aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
diff options
context:
space:
mode:
authorDiva Canto2016-06-24 12:27:45 -0700
committerDiva Canto2016-06-24 12:27:45 -0700
commitc34fcae3f32c7154ab93b4974991c959d4ad3955 (patch)
tree2aa7d141cd264a776f0a8c25d62be450212de274 /OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
parentMantis #7933: copy-paste bug in avn code. (diff)
downloadopensim-SC-c34fcae3f32c7154ab93b4974991c959d4ad3955.zip
opensim-SC-c34fcae3f32c7154ab93b4974991c959d4ad3955.tar.gz
opensim-SC-c34fcae3f32c7154ab93b4974991c959d4ad3955.tar.bz2
opensim-SC-c34fcae3f32c7154ab93b4974991c959d4ad3955.tar.xz
Added a test for checking permissions in inventory items that are transferred. This is a work in progress. All permission assertions are commented for now. Will get back to this later when permissions are fixed by Melanie.
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
index 5a36332..e7e145a 100644
--- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
@@ -128,6 +128,10 @@ namespace OpenSim.Tests.Common
128 item.Owner = userId; 128 item.Owner = userId;
129 item.AssetType = asset.Type; 129 item.AssetType = asset.Type;
130 item.InvType = (int)itemType; 130 item.InvType = (int)itemType;
131 item.BasePermissions = (uint)OpenMetaverse.PermissionMask.All |
132 (uint)(Framework.PermissionMask.foldedMask | Framework.PermissionMask.foldedCopy | Framework.PermissionMask.foldedModify | Framework.PermissionMask.foldedTransfer);
133 item.CurrentPermissions = (uint)OpenMetaverse.PermissionMask.All |
134 (uint)(Framework.PermissionMask.foldedMask | Framework.PermissionMask.foldedCopy | Framework.PermissionMask.foldedModify | Framework.PermissionMask.foldedTransfer);
131 135
132 InventoryFolderBase folder = InventoryArchiveUtils.FindFoldersByPath(scene.InventoryService, userId, path)[0]; 136 InventoryFolderBase folder = InventoryArchiveUtils.FindFoldersByPath(scene.InventoryService, userId, path)[0];
133 137