aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-02 19:25:52 +0000
committerJustin Clark-Casey (justincc)2013-01-04 00:46:37 +0000
commitacd9d62af229f8cf3e8a430707e061481fdbe0ab (patch)
tree70f3e7c6d721128591b29c731f06f8b8c57d928d
parentBulletSim: add parameter to have Bullet output performance statistics (diff)
downloadopensim-SC-acd9d62af229f8cf3e8a430707e061481fdbe0ab.zip
opensim-SC-acd9d62af229f8cf3e8a430707e061481fdbe0ab.tar.gz
opensim-SC-acd9d62af229f8cf3e8a430707e061481fdbe0ab.tar.bz2
opensim-SC-acd9d62af229f8cf3e8a430707e061481fdbe0ab.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 '')
-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 {