aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-12-23 03:42:50 +0000
committerUbitUmarov2016-12-23 03:42:50 +0000
commit0887be3c12f548539dd5a66d11c74a2f118cac5f (patch)
tree1de82c4a88b9017e9c487eb11f29369225df6e10
parentUserProfileModule threading issues (diff)
downloadopensim-SC-0887be3c12f548539dd5a66d11c74a2f118cac5f.zip
opensim-SC-0887be3c12f548539dd5a66d11c74a2f118cac5f.tar.gz
opensim-SC-0887be3c12f548539dd5a66d11c74a2f118cac5f.tar.bz2
opensim-SC-0887be3c12f548539dd5a66d11c74a2f118cac5f.tar.xz
replace the (hidden) GRID_GOD by a more usefull GOD so includes all types. This needs to be changed to current effective godlevel check (sp.GodLevel) when that is fixed. Automatic god powers need be (optionaly) removed
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs8
-rw-r--r--bin/config-include/osslEnable.ini1
2 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 5638f01..6e66479 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() == "GRID_GOD") 313 if (current.ToUpper() == "PARCEL_GROUP_MEMBER" || current.ToUpper() == "PARCEL_OWNER" || current.ToUpper() == "ESTATE_MANAGER" || current.ToUpper() == "ESTATE_OWNER" || 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());
@@ -416,9 +416,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
416 } 416 }
417 417
418 //Only gods may use the function 418 //Only gods may use the function
419 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GRID_GOD")) 419 if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD"))
420 { 420 {
421 if (World.Permissions.IsGridGod(ownerID)) 421 // this should be replaced by sp.GodLevel > 200 to be effective requested power
422 // but that still needs fix
423 if (World.Permissions.IsGod(ownerID))
422 { 424 {
423 return String.Empty; 425 return String.Empty;
424 } 426 }
diff --git a/bin/config-include/osslEnable.ini b/bin/config-include/osslEnable.ini
index a064f09..21e1451 100644
--- a/bin/config-include/osslEnable.ini
+++ b/bin/config-include/osslEnable.ini
@@ -37,6 +37,7 @@
37 ; To enable for individuals or groups, set it to a comma separated list. This checks 37 ; To enable for individuals or groups, set it to a comma separated list. This checks
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 ; "GOD" -- enable for users with GOD rights
40 ; "ESTATE_MANAGER" -- enable for estate manager 41 ; "ESTATE_MANAGER" -- enable for estate manager
41 ; "ESTATE_OWNER" -- enable for estate owner 42 ; "ESTATE_OWNER" -- enable for estate owner
42 ; "PARCEL_OWNER" -- enable for parcel owner 43 ; "PARCEL_OWNER" -- enable for parcel owner