aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2017-04-29 16:58:43 +0100
committerUbitUmarov2017-04-29 16:58:43 +0100
commit725ccbb4774043be83fbaa26f3657acfa5313ebe (patch)
treea9b915d481ab4a90e0d59b0ae937df8d7502560b /OpenSim/Region
parentfix chain of contents sells (diff)
downloadopensim-SC-725ccbb4774043be83fbaa26f3657acfa5313ebe.zip
opensim-SC-725ccbb4774043be83fbaa26f3657acfa5313ebe.tar.gz
opensim-SC-725ccbb4774043be83fbaa26f3657acfa5313ebe.tar.bz2
opensim-SC-725ccbb4774043be83fbaa26f3657acfa5313ebe.tar.xz
add check for valid folded perms
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 668766b..a6f6aa3 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -699,13 +699,9 @@ namespace OpenSim.Region.Framework.Scenes
699 // If this is an object, root prim perms may be more 699 // If this is an object, root prim perms may be more
700 // permissive than folded perms. Use folded perms as 700 // permissive than folded perms. Use folded perms as
701 // a mask 701 // a mask
702 if (item.InvType == (int)InventoryType.Object) 702 uint foldedPerms = (item.CurrentPermissions & (uint)PermissionMask.FoldedMask) << (int)PermissionMask.FoldingShift;
703 if (foldedPerms != 0 && item.InvType == (int)InventoryType.Object)
703 { 704 {
704 // Create a safe mask for the current perms
705 uint foldedPerms = (item.CurrentPermissions & 7) << 13;
706 if ((item.CurrentPermissions & (uint)PermissionMask.FoldedExport) != 0)
707 foldedPerms |= (uint)PermissionMask.Export;
708
709 foldedPerms |= permsMask; 705 foldedPerms |= permsMask;
710 706
711 bool isRootMod = (item.CurrentPermissions & 707 bool isRootMod = (item.CurrentPermissions &