diff options
author | UbitUmarov | 2014-09-26 13:28:24 +0100 |
---|---|---|
committer | UbitUmarov | 2014-09-26 13:28:24 +0100 |
commit | 09e05d48b9cb45c7211145bf325dc3ab144a03a1 (patch) | |
tree | 2a010d74b4fbbb4622ba246bee27c21dffe9283f | |
parent | remove debug msgs (diff) | |
download | opensim-SC-09e05d48b9cb45c7211145bf325dc3ab144a03a1.zip opensim-SC-09e05d48b9cb45c7211145bf325dc3ab144a03a1.tar.gz opensim-SC-09e05d48b9cb45c7211145bf325dc3ab144a03a1.tar.bz2 opensim-SC-09e05d48b9cb45c7211145bf325dc3ab144a03a1.tar.xz |
refuse to do a inventory link if provided asset type is not a link or
folderlink
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index e003a59..5197f58 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -1063,6 +1063,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1063 | if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId)) | 1063 | if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId)) |
1064 | return; | 1064 | return; |
1065 | 1065 | ||
1066 | if (type != (sbyte)AssetType.Link || type != (sbyte)AssetType.LinkFolder) | ||
1067 | return; | ||
1068 | |||
1069 | |||
1066 | ScenePresence presence; | 1070 | ScenePresence presence; |
1067 | if (TryGetScenePresence(remoteClient.AgentId, out presence)) | 1071 | if (TryGetScenePresence(remoteClient.AgentId, out presence)) |
1068 | { | 1072 | { |