aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2017-01-07 22:54:24 +0000
committerMelanie Thielker2017-01-07 22:54:24 +0000
commitc9736755d84c6bbee863578938aa279379b83170 (patch)
treec347212b2923686deca92e0537a458426a37c5c9 /OpenSim
parentAllow OSSL scripts to softfail (diff)
parentrename OSSL enable option GOD as ACTIVE_GOD so its use is more clear (diff)
downloadopensim-SC_OLD-c9736755d84c6bbee863578938aa279379b83170.zip
opensim-SC_OLD-c9736755d84c6bbee863578938aa279379b83170.tar.gz
opensim-SC_OLD-c9736755d84c6bbee863578938aa279379b83170.tar.bz2
opensim-SC_OLD-c9736755d84c6bbee863578938aa279379b83170.tar.xz
Merge branch 'master' of opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 06717c6..bb475a2 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() == "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")
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());
@@ -426,7 +426,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
426 } 426 }
427 427
428 //Only active gods may use the function 428 //Only active gods may use the function
429 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD")) 429 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("ACTIVE_GOD"))
430 { 430 {
431 ScenePresence sp = World.GetScenePresence(ownerID); 431 ScenePresence sp = World.GetScenePresence(ownerID);
432 if (sp != null && !sp.IsDeleted && sp.IsGod) 432 if (sp != null && !sp.IsDeleted && sp.IsGod)