aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
authorMelanie2012-01-06 17:37:22 +0000
committerMelanie2012-01-06 17:37:22 +0000
commitfbb2a7e90d28bb6a522b4e203e53e1c81cbf25e5 (patch)
tree7304903f1294eaf8f7bf6e6c8a9cf10bb5431cb8 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-fbb2a7e90d28bb6a522b4e203e53e1c81cbf25e5.zip
opensim-SC-fbb2a7e90d28bb6a522b4e203e53e1c81cbf25e5.tar.gz
opensim-SC-fbb2a7e90d28bb6a522b4e203e53e1c81cbf25e5.tar.bz2
opensim-SC-fbb2a7e90d28bb6a522b4e203e53e1c81cbf25e5.tar.xz
Add ThreatLevel.NoAccess to OSSL. This allows to enable OSSL without enabling
any methods, even those without threat, automatically. It is for use with setups wanting to allow only specific methods to specific users.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs5
1 files changed, 4 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 503b5d0..bb0ba3d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -157,6 +157,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
157 string risk = m_ScriptEngine.Config.GetString("OSFunctionThreatLevel", "VeryLow"); 157 string risk = m_ScriptEngine.Config.GetString("OSFunctionThreatLevel", "VeryLow");
158 switch (risk) 158 switch (risk)
159 { 159 {
160 case "NoAccess":
161 m_MaxThreatLevel = ThreatLevel.NoAccess;
162 break;
160 case "None": 163 case "None":
161 m_MaxThreatLevel = ThreatLevel.None; 164 m_MaxThreatLevel = ThreatLevel.None;
162 break; 165 break;
@@ -2619,4 +2622,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2619 return date.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ"); 2622 return date.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ");
2620 } 2623 }
2621 } 2624 }
2622} \ No newline at end of file 2625}