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

owned by the host prim owner.
This commit is contained in:
Melanie Thielker
2010-06-02 01:04:17 +02:00
parent d8962ef415
commit 70aa965c26

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