aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authoronefang2019-08-25 07:56:14 +1000
committeronefang2019-08-25 07:56:14 +1000
commit4e1a8967847b93442ec3e4e0d254c5d6c1edffb7 (patch)
treea1120a304f2cea2027f955b87d817d9f7c805d99 /OpenSim/Region
parentForgot to update this when I changed "month" -> "day30" for stats. (diff)
downloadopensim-SC-4e1a8967847b93442ec3e4e0d254c5d6c1edffb7.zip
opensim-SC-4e1a8967847b93442ec3e4e0d254c5d6c1edffb7.tar.gz
opensim-SC-4e1a8967847b93442ec3e4e0d254c5d6c1edffb7.tar.bz2
opensim-SC-4e1a8967847b93442ec3e4e0d254c5d6c1edffb7.tar.xz
Gods can do anything they want, including bypassing OhSilly threat levels.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 544dce4..a8c1a8f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -274,6 +274,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
274 // or a string explaining why this function can't be used. 274 // or a string explaining why this function can't be used.
275 private string CheckThreatLevelTest(ThreatLevel level, string function) 275 private string CheckThreatLevelTest(ThreatLevel level, string function)
276 { 276 {
277 // Grid gods can do anything they damn well please.
278 if (World.Permissions.IsGridGod(m_item.OwnerID))
279 return String.Empty;
280 else
281 {
282 // So can active gods.
283 ScenePresence sp = World.GetScenePresence(m_item.OwnerID);
284 if (sp != null && !sp.IsDeleted && sp.IsGod)
285 return String.Empty;
286 }
287
277 if (!m_FunctionPerms.ContainsKey(function)) 288 if (!m_FunctionPerms.ContainsKey(function))
278 { 289 {
279 FunctionPerms perms = new FunctionPerms(); 290 FunctionPerms perms = new FunctionPerms();