aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2017-01-07 21:44:01 +0000
committerUbitUmarov2017-01-07 21:44:01 +0000
commite2167716aab0d11e09317fcda2001dcabb3a04a5 (patch)
tree5c9e5e891d38a1d6ce1f90b67faa38b26bc03067
parentuse new IsGod on CheckAndAdjustLandingPoint_SL so it can be by current viewer... (diff)
downloadopensim-SC_OLD-e2167716aab0d11e09317fcda2001dcabb3a04a5.zip
opensim-SC_OLD-e2167716aab0d11e09317fcda2001dcabb3a04a5.tar.gz
opensim-SC_OLD-e2167716aab0d11e09317fcda2001dcabb3a04a5.tar.bz2
opensim-SC_OLD-e2167716aab0d11e09317fcda2001dcabb3a04a5.tar.xz
change OSSL enable option GOD to use IsGod, so it means a active god, as my original idea
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs15
-rw-r--r--bin/config-include/osslEnable.ini2
2 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 066f6a4..07549f8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -415,24 +415,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
415 } 415 }
416 } 416 }
417 417
418 //Only gods may use the function 418
419 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD")) 419 //Only grid gods may use the function
420 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GRID_GOD"))
420 { 421 {
421 if (World.Permissions.IsGod(ownerID)) 422 if (World.Permissions.IsGridGod(ownerID))
422 { 423 {
423 return String.Empty; 424 return String.Empty;
424 } 425 }
425 } 426 }
426 427
427 //Only grid gods may use the function 428 //Only active gods may use the function
428 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GRID_GOD")) 429 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD"))
429 { 430 {
430 if (World.Permissions.IsGridGod(ownerID)) 431 ScenePresence sp = World.GetScenePresence(ownerID);
432 if (sp != null && !sp.IsDeleted && sp.IsGod)
431 { 433 {
432 return String.Empty; 434 return String.Empty;
433 } 435 }
434 } 436 }
435 437
438
436 if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID)) 439 if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID))
437 return( 440 return(
438 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.", 441 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.",
diff --git a/bin/config-include/osslEnable.ini b/bin/config-include/osslEnable.ini
index b96688b..3859ba6 100644
--- a/bin/config-include/osslEnable.ini
+++ b/bin/config-include/osslEnable.ini
@@ -38,7 +38,7 @@
38 ; against the owner of the object containing the script. 38 ; against the owner of the object containing the script.
39 ; The comma separated entries in the list may be one of: 39 ; The comma separated entries in the list may be one of:
40 ; "GRID_GOD" -- enable for users with UserLevel >= 200 40 ; "GRID_GOD" -- enable for users with UserLevel >= 200
41 ; "GOD" -- enable for users with any type of god rights 41 ; "GOD" -- enable for present and with active god power
42 ; "ESTATE_MANAGER" -- enable for estate manager 42 ; "ESTATE_MANAGER" -- enable for estate manager
43 ; "ESTATE_OWNER" -- enable for estate owner 43 ; "ESTATE_OWNER" -- enable for estate owner
44 ; "PARCEL_OWNER" -- enable for parcel owner 44 ; "PARCEL_OWNER" -- enable for parcel owner