Add a forgotten security check. Make the new functions only work on prims

owned by the host prim owner.
avinationmerge
Melanie Thielker 2010-06-02 01:04:17 +02:00
parent d8962ef415
commit 70aa965c26
1 changed files with 6 additions and 0 deletions

View File

@ -10268,6 +10268,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (obj == null)
return;
if (obj.OwnerID != m_host.OwnerID)
return;
SetPrimParams(obj, rules);
}
@ -10277,6 +10280,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (obj == null)
return new LSL_List();
if (obj.OwnerID != m_host.OwnerID)
return new LSL_List();
return GetLinkPrimitiveParams(obj, rules);
}
}