give osTeleportObject proper OSFunctionThreatLevel setting on osslEnable.ini

httptests
UbitUmarov 2017-04-05 01:15:44 +01:00
parent d085c337a9
commit 2805cb9dec
2 changed files with 3 additions and 2 deletions

View File

@ -4644,13 +4644,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// </remarks>
public void osTeleportObject(LSL_Key objectUUID, LSL_Vector targetPos, LSL_Rotation rotation, LSL_Integer flags)
{
CheckThreatLevel(ThreatLevel.Severe, "osTeleportAgent");
CheckThreatLevel(ThreatLevel.Severe, "osTeleportObject");
m_host.AddScriptLPS(1);
UUID objUUID;
if (!UUID.TryParse(objectUUID, out objUUID))
{
OSSLShoutError("osObjectTeleport() invalid object Key");
OSSLShoutError("osTeleportObject() invalid object Key");
return;
}

View File

@ -236,4 +236,5 @@
Allow_osKickAvatar = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Allow_osRevokeScriptPermissions = false
Allow_osTeleportAgent = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Allow_osObjectTeleport = ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER