mirror of
https://github.com/opensim/opensim.git
synced 2026-06-03 00:46:33 +08:00
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.
This commit is contained in:
@@ -157,6 +157,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
string risk = m_ScriptEngine.Config.GetString("OSFunctionThreatLevel", "VeryLow");
|
||||
switch (risk)
|
||||
{
|
||||
case "NoAccess":
|
||||
m_MaxThreatLevel = ThreatLevel.NoAccess;
|
||||
break;
|
||||
case "None":
|
||||
m_MaxThreatLevel = ThreatLevel.None;
|
||||
break;
|
||||
@@ -2619,4 +2622,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return date.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
{
|
||||
public enum ThreatLevel
|
||||
{
|
||||
NoAccess = -1,
|
||||
None = 0,
|
||||
Nuisance = 1,
|
||||
VeryLow = 2,
|
||||
|
||||
Reference in New Issue
Block a user