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.

LSLKeyTest
Melanie Thielker 2016-05-01 20:33:47 +02:00
parent 59ed89769a
commit 4bac95bf4a
1 changed files with 2 additions and 2 deletions

View File

@ -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);