From 4bac95bf4a13259f4d20103c9e61b46035af7b98 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 1 May 2016 20:33:47 +0200 Subject: 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. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f48d42d..ad444eb 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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); -- cgit v1.1