From 4e1a8967847b93442ec3e4e0d254c5d6c1edffb7 Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 25 Aug 2019 07:56:14 +1000 Subject: Gods can do anything they want, including bypassing OhSilly threat levels. --- .../Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim') 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 // or a string explaining why this function can't be used. private string CheckThreatLevelTest(ThreatLevel level, string function) { + // Grid gods can do anything they damn well please. + if (World.Permissions.IsGridGod(m_item.OwnerID)) + return String.Empty; + else + { + // So can active gods. + ScenePresence sp = World.GetScenePresence(m_item.OwnerID); + if (sp != null && !sp.IsDeleted && sp.IsGod) + return String.Empty; + } + if (!m_FunctionPerms.ContainsKey(function)) { FunctionPerms perms = new FunctionPerms(); -- cgit v1.1