diff options
author | Charles Krinke | 2008-07-09 14:32:21 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-09 14:32:21 +0000 |
commit | 9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7 (patch) | |
tree | 79d591a24b076dd0a7f33c33858f9d87cb9d2d22 /OpenSim/Region | |
parent | for testing purposes only: (diff) | |
download | opensim-SC-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.zip opensim-SC-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.tar.gz opensim-SC-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.tar.bz2 opensim-SC-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.tar.xz |
Mantis#1700. Thank you, Melanie for a patch that:
Lets osSetParcelMediaTime honor the AllowOSComamnds setting
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 |
1 files changed, 8 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 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 | |||
586 | //for testing purposes only | 586 | //for testing purposes only |
587 | public void osSetParcelMediaTime(double time) | 587 | public void osSetParcelMediaTime(double time) |
588 | { | 588 | { |
589 | if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false)) | ||
590 | { | ||
591 | OSSLError("osSetParcelMediaTime: permission denied"); | ||
592 | return; | ||
593 | } | ||
594 | |||
595 | m_host.AddScriptLPS(1); | ||
596 | |||
589 | World.ParcelMediaSetTime((float)time); | 597 | World.ParcelMediaSetTime((float)time); |
590 | } | 598 | } |
591 | } | 599 | } |