From 9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 9 Jul 2008 14:32:21 +0000 Subject: Mantis#1700. Thank you, Melanie for a patch that: Lets osSetParcelMediaTime honor the AllowOSComamnds setting --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index b7ff9b6..ae138b4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -586,6 +586,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api //for testing purposes only public void osSetParcelMediaTime(double time) { + if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false)) + { + OSSLError("osSetParcelMediaTime: permission denied"); + return; + } + + m_host.AddScriptLPS(1); + World.ParcelMediaSetTime((float)time); } } -- cgit v1.1