aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-02 19:25:52 +0000
committerJustin Clark-Casey (justincc)2013-01-02 19:25:52 +0000
commit30e5e5cce631d8a3a94b149c6ae1bd1170a17a46 (patch)
tree70f3e7c6d721128591b29c731f06f8b8c57d928d /OpenSim/Region/ScriptEngine
parentBulletSim: add parameter to have Bullet output performance statistics (diff)
downloadopensim-SC_OLD-30e5e5cce631d8a3a94b149c6ae1bd1170a17a46.zip
opensim-SC_OLD-30e5e5cce631d8a3a94b149c6ae1bd1170a17a46.tar.gz
opensim-SC_OLD-30e5e5cce631d8a3a94b149c6ae1bd1170a17a46.tar.bz2
opensim-SC_OLD-30e5e5cce631d8a3a94b149c6ae1bd1170a17a46.tar.xz
If an NPC is unowned, then always auto-grant permissions requested via llRequestPermissions()
This is consistent with all other OSSL NPC functions that allow unowned avatars to be manipulated. Aims to address http://opensimulator.org/mantis/view.php?id=6483
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f9b90c5..d69551f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3463,7 +3463,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3463 INPCModule npcModule = World.RequestModuleInterface<INPCModule>(); 3463 INPCModule npcModule = World.RequestModuleInterface<INPCModule>();
3464 if (npcModule != null && npcModule.IsNPC(agentID, World)) 3464 if (npcModule != null && npcModule.IsNPC(agentID, World))
3465 { 3465 {
3466 if (agentID == m_host.ParentGroup.OwnerID || npcModule.GetOwner(agentID) == m_host.ParentGroup.OwnerID) 3466 if (npcModule.CheckPermissions(agentID, m_host.OwnerID))
3467 { 3467 {
3468 lock (m_host.TaskInventory) 3468 lock (m_host.TaskInventory)
3469 { 3469 {