mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
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
This commit is contained in:
@@ -3463,7 +3463,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
INPCModule npcModule = World.RequestModuleInterface<INPCModule>();
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user