diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 1 |
3 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index ea100ae..c913271 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2754,9 +2754,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
2754 | continue; | 2754 | continue; |
2755 | 2755 | ||
2756 | sog.SetOwnerId(groupID); | 2756 | sog.SetOwnerId(groupID); |
2757 | // Make the group mask be the previous owner mask | 2757 | |
2758 | sog.RootPart.GroupMask = sog.RootPart.OwnerMask; | 2758 | // this is wrong, GroupMask is used for group sharing, still possible to set |
2759 | // this whould give owner rights to users that are member of group but don't have role powers to edit | ||
2760 | // sog.RootPart.GroupMask = sog.RootPart.OwnerMask; | ||
2761 | |||
2762 | // we should keep all permissions on deed to group | ||
2763 | // and with this comented code, if user does not set next permissions on the object | ||
2764 | // and on ALL contents of ALL prims, he may loose rights, making the object useless | ||
2759 | sog.ApplyNextOwnerPermissions(); | 2765 | sog.ApplyNextOwnerPermissions(); |
2766 | sog.AggregatePerms(); | ||
2760 | 2767 | ||
2761 | sog.ScheduleGroupForFullUpdate(); | 2768 | sog.ScheduleGroupForFullUpdate(); |
2762 | 2769 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 639c8dd..033170d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2764,7 +2764,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2764 | { | 2764 | { |
2765 | // Apply Next Owner Permissions if we're not bypassing permissions | 2765 | // Apply Next Owner Permissions if we're not bypassing permissions |
2766 | if (!m_scene.Permissions.BypassPermissions()) | 2766 | if (!m_scene.Permissions.BypassPermissions()) |
2767 | { | ||
2767 | ApplyNextOwnerPermissions(); | 2768 | ApplyNextOwnerPermissions(); |
2769 | AggregatePerms(); | ||
2770 | } | ||
2768 | } | 2771 | } |
2769 | 2772 | ||
2770 | rpart.ScheduleFullUpdate(); | 2773 | rpart.ScheduleFullUpdate(); |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 4dd8eb1..29d9f08 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -980,6 +980,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
980 | } | 980 | } |
981 | // old code end | 981 | // old code end |
982 | rootPart.TrimPermissions(); | 982 | rootPart.TrimPermissions(); |
983 | group.AggregateDeepPerms(); | ||
983 | } | 984 | } |
984 | 985 | ||
985 | return true; | 986 | return true; |