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

owned by the host prim owner.
soprefactor
Melanie Thielker 2010-06-02 01:04:17 +02:00 committed by Melanie
parent 53e96dccef
commit aa5a346a68
1 changed files with 6 additions and 0 deletions

View File

@ -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);
} }
} }