mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Add a forgotten security check. Make the new functions only work on prims
owned by the host prim owner.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user