aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-13 19:16:15 +0000
committerJustin Clarke Casey2008-11-13 19:16:15 +0000
commitbf68255b86093afe68392973054af7c3e2f2121b (patch)
tree13eedccc5933994ee65d80ee86385583480c786b /OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
parentMake scripts in objects rezzed from script compile synchronously to close (diff)
downloadopensim-SC-bf68255b86093afe68392973054af7c3e2f2121b.zip
opensim-SC-bf68255b86093afe68392973054af7c3e2f2121b.tar.gz
opensim-SC-bf68255b86093afe68392973054af7c3e2f2121b.tar.bz2
opensim-SC-bf68255b86093afe68392973054af7c3e2f2121b.tar.xz
* refactor: rename object inventory permission checks to distinguish between task inventory and agent inventory
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index 19c9d08..d47e068 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -1387,7 +1387,8 @@ namespace OpenSim.Region.Environment.Scenes
1387 if ((part.OwnerMask & (uint)PermissionMask.Modify) == 0) 1387 if ((part.OwnerMask & (uint)PermissionMask.Modify) == 0)
1388 return; 1388 return;
1389 1389
1390 if (!ExternalChecks.ExternalChecksCanCreateInventory(itemBase.InvType, part.UUID, remoteClient.AgentId)) 1390 if (!ExternalChecks.ExternalChecksCanCreateObjectInventory(
1391 itemBase.InvType, part.UUID, remoteClient.AgentId))
1391 return; 1392 return;
1392 1393
1393 AssetBase asset = CreateAsset(itemBase.Name, itemBase.Description, (sbyte)itemBase.AssetType, Encoding.ASCII.GetBytes("default\n{\n state_entry()\n {\n llSay(0, \"Script running\");\n }\n}")); 1394 AssetBase asset = CreateAsset(itemBase.Name, itemBase.Description, (sbyte)itemBase.AssetType, Encoding.ASCII.GetBytes("default\n{\n state_entry()\n {\n llSay(0, \"Script running\");\n }\n}"));