aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2016-05-01 20:33:47 +0200
committerMelanie Thielker2016-05-01 20:33:47 +0200
commit4bac95bf4a13259f4d20103c9e61b46035af7b98 (patch)
tree736b90dd2b795a9366261b10324b964d3dbc3ebd /OpenSim/Region
parentApply user specified default perms across the board, to items uploaded as wel... (diff)
downloadopensim-SC-4bac95bf4a13259f4d20103c9e61b46035af7b98.zip
opensim-SC-4bac95bf4a13259f4d20103c9e61b46035af7b98.tar.gz
opensim-SC-4bac95bf4a13259f4d20103c9e61b46035af7b98.tar.bz2
opensim-SC-4bac95bf4a13259f4d20103c9e61b46035af7b98.tar.xz
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
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
11918 11918
11919 if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false)) 11919 if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false))
11920 { 11920 {
11921 if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID)) 11921 if (World.Permissions.IsAdministrator(m_host.OwnerID))
11922 { 11922 {
11923 if (mask == ScriptBaseClass.MASK_BASE)//0 11923 if (mask == ScriptBaseClass.MASK_BASE)//0
11924 { 11924 {
@@ -11980,7 +11980,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11980 11980
11981 if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false)) 11981 if (m_ScriptEngine.Config.GetBoolean("AllowGodFunctions", false))
11982 { 11982 {
11983 if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID)) 11983 if (World.Permissions.IsAdministrator(m_host.OwnerID))
11984 { 11984 {
11985 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(itemName); 11985 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(itemName);
11986 11986