Add a forgotten security check. Make the new functions only work on prims
owned by the host prim owner.soprefactor
parent
53e96dccef
commit
aa5a346a68
|
@ -9795,6 +9795,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (obj.OwnerID != m_host.OwnerID)
|
||||||
|
return;
|
||||||
|
|
||||||
SetPrimParams(obj, rules);
|
SetPrimParams(obj, rules);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9804,6 +9807,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
return new LSL_List();
|
return new LSL_List();
|
||||||
|
|
||||||
|
if (obj.OwnerID != m_host.OwnerID)
|
||||||
|
return new LSL_List();
|
||||||
|
|
||||||
return GetLinkPrimitiveParams(obj, rules);
|
return GetLinkPrimitiveParams(obj, rules);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue