Fix permission propagation that was broken some revision back, causing
sold/given prim to become full perm.0.6.1-post-fixes
parent
557559abd3
commit
6b7ba29986
|
@ -4270,7 +4270,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
foreach (SceneObjectPart child in partList)
|
foreach (SceneObjectPart child in partList)
|
||||||
{
|
{
|
||||||
child.Inventory.ChangeInventoryOwner(remoteClient.AgentId);
|
child.Inventory.ChangeInventoryOwner(remoteClient.AgentId);
|
||||||
child.Inventory.ApplyNextOwnerPermissions();
|
child.ApplyNextOwnerPermissions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -423,10 +423,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
SceneObjectGroup group = (SceneObjectGroup)obj;
|
SceneObjectGroup group = (SceneObjectGroup)obj;
|
||||||
|
|
||||||
if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId))
|
if (group.OwnerID != remoteClient.AgentId)
|
||||||
group.SetGroup(GroupID, remoteClient);
|
group.SetGroup(GroupID, remoteClient);
|
||||||
else
|
|
||||||
remoteClient.SendAgentAlertMessage("You don't have permission to set the group", false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -302,7 +302,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
public void ApplyNextOwnerPermissions()
|
public void ApplyNextOwnerPermissions()
|
||||||
{
|
{
|
||||||
foreach (SceneObjectPart part in m_parts.Values)
|
foreach (SceneObjectPart part in m_parts.Values)
|
||||||
part.Inventory.ApplyNextOwnerPermissions();
|
{
|
||||||
|
part.ApplyNextOwnerPermissions();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetStateSnapshot()
|
public string GetStateSnapshot()
|
||||||
|
|
Loading…
Reference in New Issue