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
0.7.4-extended
Justin Clark-Casey (justincc) 2013-01-02 19:25:52 +00:00
parent 16349c1368
commit 04ee863c33
1 changed files with 1 additions and 1 deletions

View File

@ -3486,7 +3486,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
INPCModule npcModule = World.RequestModuleInterface<INPCModule>(); INPCModule npcModule = World.RequestModuleInterface<INPCModule>();
if (npcModule != null && npcModule.IsNPC(agentID, World)) if (npcModule != null && npcModule.IsNPC(agentID, World))
{ {
if (agentID == m_host.ParentGroup.OwnerID || npcModule.GetOwner(agentID) == m_host.ParentGroup.OwnerID) if (npcModule.CheckPermissions(agentID, m_host.OwnerID))
{ {
lock (m_host.TaskInventory) lock (m_host.TaskInventory)
{ {