Add a forgotten security check. Make the new functions only work on prims
owned by the host prim owner.avinationmerge
parent
d8962ef415
commit
70aa965c26
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue