Mantis#1700. Thank you, Melanie for a patch that:
Lets osSetParcelMediaTime honor the AllowOSComamnds setting0.6.0-stable
parent
58ce018625
commit
9f68bcd80b
|
@ -586,6 +586,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
//for testing purposes only
|
//for testing purposes only
|
||||||
public void osSetParcelMediaTime(double time)
|
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);
|
World.ParcelMediaSetTime((float)time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue