From 116d32d947e3c1446ce98dca0be62ea74055216d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 30 Apr 2017 00:14:45 +0100 Subject: [PATCH] don't break groups permission mask --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index a2cee81832..afdd99ea44 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -1283,8 +1283,7 @@ namespace OpenSim.Region.Framework.Scenes agentItem.CurrentPermissions = perms; agentItem.NextPermissions = perms & taskItem.NextPermissions; agentItem.EveryOnePermissions = perms & taskItem.EveryonePermissions; - // Group permissions make no sense here - agentItem.GroupPermissions = 0; + agentItem.GroupPermissions = perms & taskItem.GroupPermissions; agentItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm; agentItem.Flags &= ~(uint)(InventoryItemFlags.ObjectOverwriteBase | InventoryItemFlags.ObjectOverwriteOwner | InventoryItemFlags.ObjectOverwriteGroup | InventoryItemFlags.ObjectOverwriteEveryone | InventoryItemFlags.ObjectOverwriteNextOwner); @@ -1295,7 +1294,7 @@ namespace OpenSim.Region.Framework.Scenes agentItem.CurrentPermissions = taskItem.CurrentPermissions; agentItem.NextPermissions = taskItem.NextPermissions; agentItem.EveryOnePermissions = taskItem.EveryonePermissions; - agentItem.GroupPermissions = 0; + agentItem.GroupPermissions = taskItem.GroupPermissions; } message = null;