Fix permission propagation that was broken some revision back, causing

sold/given prim to become full perm.
0.6.1-post-fixes
Melanie Thielker 2008-11-27 03:17:00 +00:00
parent 557559abd3
commit 6b7ba29986
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -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()