Change requirements for the LL god functions from CanRunConsoleCommand to IsAdministrator, a function that was not available when these were first coded and makes much more sense.
parent
59ed89769a
commit
4bac95bf4a
|
@ -11918,7 +11918,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false))
|
||||
{
|
||||
if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID))
|
||||
if (World.Permissions.IsAdministrator(m_host.OwnerID))
|
||||
{
|
||||
if (mask == ScriptBaseClass.MASK_BASE)//0
|
||||
{
|
||||
|
@ -11980,7 +11980,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false))
|
||||
{
|
||||
if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID))
|
||||
if (World.Permissions.IsAdministrator(m_host.OwnerID))
|
||||
{
|
||||
TaskInventoryItem item = m_host.Inventory.GetInventoryItem(itemName);
|
||||
|
||||
|
|
Loading…
Reference in New Issue