From 1f7966d6e8b780b77e6232cf7fbf6c473dea073b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 6 Oct 2008 02:29:38 +0000 Subject: Fix a privilege escalation with linked sets --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 08623aa..63c97eb 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -2152,10 +2152,13 @@ namespace OpenSim.Region.Environment.Scenes } } - public void UpdatePermissions(UUID AgentID, byte field, uint localID, uint mask, byte addRemTF) + public void UpdatePermissions(UUID AgentID, byte field, uint localID, + uint mask, byte addRemTF) { - SceneObjectPart updatePart = GetChildPart(localID); - updatePart.UpdatePermissions(AgentID, field, localID, mask, addRemTF); + foreach (SceneObjectPart part in m_parts.Values) + part.UpdatePermissions(AgentID, field, localID, mask, + addRemTF); + HasGroupChanged = true; } -- cgit v1.1