aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-01-19 17:45:54 +0000
committerUbitUmarov2017-01-19 17:45:54 +0000
commitd8108ab740d9a6ad782476fc43b62ec4c36b30b3 (patch)
tree6b4c53cd221ede82abc40b3eda6f0608f827f586 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
parentadd a comment about parts permissions aggregation (diff)
downloadopensim-SC-d8108ab740d9a6ad782476fc43b62ec4c36b30b3.zip
opensim-SC-d8108ab740d9a6ad782476fc43b62ec4c36b30b3.tar.gz
opensim-SC-d8108ab740d9a6ad782476fc43b62ec4c36b30b3.tar.bz2
opensim-SC-d8108ab740d9a6ad782476fc43b62ec4c36b30b3.tar.xz
change CanDeedObject. WARNING like on other grids, if you do not set next owner rights on object and ALL ITS CONTENTS, you may loose all rights on it
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs13
1 files changed, 2 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index ad913f7..3230a2b 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -2717,9 +2717,6 @@ namespace OpenSim.Region.Framework.Scenes
2717 { 2717 {
2718 if (ownerID != UUID.Zero) 2718 if (ownerID != UUID.Zero)
2719 return; 2719 return;
2720
2721 if (!Permissions.CanDeedObject(remoteClient.AgentId, groupID))
2722 return;
2723 } 2720 }
2724 2721
2725 List<SceneObjectGroup> groups = new List<SceneObjectGroup>(); 2722 List<SceneObjectGroup> groups = new List<SceneObjectGroup>();
@@ -2750,15 +2747,9 @@ namespace OpenSim.Region.Framework.Scenes
2750 child.TriggerScriptChangedEvent(Changed.OWNER); 2747 child.TriggerScriptChangedEvent(Changed.OWNER);
2751 } 2748 }
2752 } 2749 }
2753 else // The object was deeded to the group 2750 else // The object deeded to the group
2754 { 2751 {
2755 if (!Permissions.IsGod(remoteClient.AgentId) && sog.OwnerID != remoteClient.AgentId) 2752 if (!Permissions.CanDeedObject(remoteClient, sog, groupID))
2756 continue;
2757
2758 if (!Permissions.CanTransferObject(sog.UUID, groupID))
2759 continue;
2760
2761 if (sog.GroupID != groupID)
2762 continue; 2753 continue;
2763 2754
2764 sog.SetOwnerId(groupID); 2755 sog.SetOwnerId(groupID);