diff options
author | Melanie Thielker | 2017-01-07 23:12:51 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-07 23:12:51 +0000 |
commit | f457925f80ec1651975fc5208cbc06be3ae8891e (patch) | |
tree | 3f17df5ea98fac1f0a158f660911ae1266ff6a63 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Merge branch 'master' of opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-f457925f80ec1651975fc5208cbc06be3ae8891e.zip opensim-SC_OLD-f457925f80ec1651975fc5208cbc06be3ae8891e.tar.gz opensim-SC_OLD-f457925f80ec1651975fc5208cbc06be3ae8891e.tar.bz2 opensim-SC_OLD-f457925f80ec1651975fc5208cbc06be3ae8891e.tar.xz |
Fix a compile issue and reintroduce the "GOD" script option
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-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 bb475a2..5b783f7 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" || current.ToUpper() == "ACTIVE_GOD" || current.ToUpper() == "GRID_GOD") | 313 | if (current.ToUpper() == "PARCEL_GROUP_MEMBER" || current.ToUpper() == "PARCEL_OWNER" || current.ToUpper() == "ESTATE_MANAGER" || current.ToUpper() == "ESTATE_OWNER" || current.ToUpper() == "ACTIVE_GOD" || current.ToUpper() == "GRID_GOD" || current.ToUpper() == "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()); |
@@ -425,6 +425,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
425 | } | 425 | } |
426 | } | 426 | } |
427 | 427 | ||
428 | //Any god may use the function | ||
429 | if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD")) | ||
430 | { | ||
431 | if (World.Permissions.IsAdministrator(ownerID)) | ||
432 | { | ||
433 | return String.Empty; | ||
434 | } | ||
435 | } | ||
436 | |||
428 | //Only active gods may use the function | 437 | //Only active gods may use the function |
429 | if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("ACTIVE_GOD")) | 438 | if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("ACTIVE_GOD")) |
430 | { | 439 | { |