From c64551710ec29c124c5a4ed2871affc2339e228d Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 22 Sep 2008 14:03:42 +0000 Subject: Remove the ugly-as-sin "interop" hack script perms fudging in object inventory --- .../Environment/Scenes/SceneObjectPart.Inventory.cs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 061d961..f35bd59 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs @@ -532,24 +532,6 @@ namespace OpenSim.Region.Environment.Scenes uint baseMask = item.BasePermissions; uint ownerMask = item.CurrentPermissions; - if (item.InvType == 10) // Script - { - if ((item.OwnerID != client.AgentId) && m_parentGroup.Scene.ExternalChecks.ExternalChecksCanViewScript(item.ItemID, UUID, client.AgentId)) - { - ownerID = client.AgentId; - baseMask = 0x7fffffff; - ownerMask = 0x7fffffff; - everyoneMask = (uint)(PermissionMask.Move | PermissionMask.Transfer); - } - if ((item.OwnerID != client.AgentId) && m_parentGroup.Scene.ExternalChecks.ExternalChecksCanEditScript(item.ItemID, UUID, client.AgentId)) - { - ownerID = client.AgentId; - baseMask = 0x7fffffff; - ownerMask = 0x7fffffff; - everyoneMask = (uint)(PermissionMask.Move | PermissionMask.Transfer | PermissionMask.Modify); - } - } - invString.AddItemStart(); invString.AddNameValueLine("item_id", item.ItemID.ToString()); invString.AddNameValueLine("parent_id", UUID.ToString()); -- cgit v1.1