diff options
author | Melanie Thielker | 2016-12-21 14:35:34 +0000 |
---|---|---|
committer | Melanie Thielker | 2016-12-21 14:35:34 +0000 |
commit | 7286b27ff93f566596310fc16e46d95abfa3502e (patch) | |
tree | 60c2312c7610927e7eff2df8494180509a97cc5d /OpenSim/Region/ScriptEngine | |
parent | Remove obsolete config option "EventQueue". It's been always on for ages! (diff) | |
download | opensim-SC_OLD-7286b27ff93f566596310fc16e46d95abfa3502e.zip opensim-SC_OLD-7286b27ff93f566596310fc16e46d95abfa3502e.tar.gz opensim-SC_OLD-7286b27ff93f566596310fc16e46d95abfa3502e.tar.bz2 opensim-SC_OLD-7286b27ff93f566596310fc16e46d95abfa3502e.tar.xz |
Add GRID_GOD to the list of values allowed for enabling OSSL functions
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index c83682e..c6a4050 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -310,7 +310,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
310 | foreach (string id in ids) | 310 | foreach (string id in ids) |
311 | { | 311 | { |
312 | string current = id.Trim(); | 312 | string current = id.Trim(); |
313 | if (current.ToUpper() == "PARCEL_GROUP_MEMBER" || current.ToUpper() == "PARCEL_OWNER" || current.ToUpper() == "ESTATE_MANAGER" || current.ToUpper() == "ESTATE_OWNER") | 313 | if (current.ToUpper() == "PARCEL_GROUP_MEMBER" || current.ToUpper() == "PARCEL_OWNER" || current.ToUpper() == "ESTATE_MANAGER" || current.ToUpper() == "ESTATE_OWNER" || current.ToUpper() == "GRID_GOD") |
314 | { | 314 | { |
315 | if (!perms.AllowedOwnerClasses.Contains(current)) | 315 | if (!perms.AllowedOwnerClasses.Contains(current)) |
316 | perms.AllowedOwnerClasses.Add(current.ToUpper()); | 316 | perms.AllowedOwnerClasses.Add(current.ToUpper()); |
@@ -415,6 +415,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
415 | } | 415 | } |
416 | } | 416 | } |
417 | 417 | ||
418 | //Only gods may use the function | ||
419 | if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GRID_GOD")) | ||
420 | { | ||
421 | if (World.Permissions.IsAdministrator(ownerID)) | ||
422 | { | ||
423 | return String.Empty; | ||
424 | } | ||
425 | } | ||
426 | |||
418 | if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID)) | 427 | if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID)) |
419 | return( | 428 | return( |
420 | String.Format("{0} permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.", | 429 | String.Format("{0} permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.", |