enable threat check on the new ossl method
parent
edf93abdbc
commit
17e7e9b354
|
@ -483,10 +483,13 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||||
VEnv = land.LandData.Environment;
|
VEnv = land.LandData.Environment;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* not working for some reason
|
||||||
OSD def = ViewerEnvironment.DefaultToOSD(regionID, parcel);
|
OSD def = ViewerEnvironment.DefaultToOSD(regionID, parcel);
|
||||||
httpResponse.RawBuffer = OSDParser.SerializeLLSDXmlToBytes(def);
|
httpResponse.RawBuffer = OSDParser.SerializeLLSDXmlToBytes(def);
|
||||||
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
||||||
return;
|
return;
|
||||||
|
*/
|
||||||
|
VEnv = GetRegionEnvironment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5886,9 +5886,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public LSL_Integer osReplaceAgentEnvironment(LSL_Key agentkey, LSL_Integer transition, LSL_String environment)
|
public LSL_Integer osReplaceAgentEnvironment(LSL_Key agentkey, LSL_Integer transition, LSL_String environment)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
// if(!string.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.Moderate, "osReplaceAgentEnvironment")))
|
if(!string.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.Moderate, "osReplaceAgentEnvironment")))
|
||||||
// return -2;
|
return -2;
|
||||||
|
|
||||||
|
|
||||||
if (!UUID.TryParse(agentkey, out UUID agentid))
|
if (!UUID.TryParse(agentkey, out UUID agentid))
|
||||||
return -4;
|
return -4;
|
||||||
|
|
|
@ -142,6 +142,7 @@
|
||||||
Allow_osGetSimulatorMemory = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetSimulatorMemory = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osGetSimulatorMemoryKB = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetSimulatorMemoryKB = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osMessageAttachments = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osMessageAttachments = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
|
Allow_osReplaceAgentEnvironment = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osSetSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osSetSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osSetOwnerSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osSetOwnerSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osRequestURL = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osRequestURL = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
|
|
Loading…
Reference in New Issue