mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Fix permission propagation that was broken some revision back, causing
sold/given prim to become full perm.
This commit is contained in:
@@ -4270,7 +4270,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
foreach (SceneObjectPart child in partList)
|
||||
{
|
||||
child.Inventory.ChangeInventoryOwner(remoteClient.AgentId);
|
||||
child.Inventory.ApplyNextOwnerPermissions();
|
||||
child.ApplyNextOwnerPermissions();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -423,10 +423,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
SceneObjectGroup group = (SceneObjectGroup)obj;
|
||||
|
||||
if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId))
|
||||
if (group.OwnerID != remoteClient.AgentId)
|
||||
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()
|
||||
{
|
||||
foreach (SceneObjectPart part in m_parts.Values)
|
||||
part.Inventory.ApplyNextOwnerPermissions();
|
||||
{
|
||||
part.ApplyNextOwnerPermissions();
|
||||
}
|
||||
}
|
||||
|
||||
public string GetStateSnapshot()
|
||||
|
||||
Reference in New Issue
Block a user