From 4ae960a4f0b939ec1ce50414b771a0774bf991f8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 4 Oct 2014 03:43:20 +0100 Subject: bug fix: revert back check on creating link --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 5197f58..0c51f7f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -1023,6 +1023,10 @@ namespace OpenSim.Region.Framework.Scenes item.BasePermissions = baseMask; item.CreationDate = creationDate; + // special AnimationSet case + if (item.InvType == (int)CustomInventoryType.AnimationSet) + AnimationSet.enforceItemPermitions(item,true); + if (AddInventoryItem(item)) { remoteClient.SendInventoryItemCreateUpdate(item, transationID, callbackID); @@ -1063,10 +1067,6 @@ namespace OpenSim.Region.Framework.Scenes if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId)) return; - if (type != (sbyte)AssetType.Link || type != (sbyte)AssetType.LinkFolder) - return; - - ScenePresence presence; if (TryGetScenePresence(remoteClient.AgentId, out presence)) { -- cgit v1.1