aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
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();