diff options
author | UbitUmarov | 2017-05-03 19:39:42 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-03 19:39:42 +0100 |
commit | 3ef583f205910c35e7537c3d725e66629fc95a30 (patch) | |
tree | 66e22a50297554e1683c4d687c3ad38f9483e685 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | still another missing conversion btw viewer and OS on groupd owned (diff) | |
download | opensim-SC-3ef583f205910c35e7537c3d725e66629fc95a30.zip opensim-SC-3ef583f205910c35e7537c3d725e66629fc95a30.tar.gz opensim-SC-3ef583f205910c35e7537c3d725e66629fc95a30.tar.bz2 opensim-SC-3ef583f205910c35e7537c3d725e66629fc95a30.tar.xz |
fix right to change permissions of group owned taskitems
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index ca1e0a8..d55311e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -1738,8 +1738,25 @@ namespace OpenSim.Region.Framework.Scenes | |||
1738 | // Check if we're allowed to mess with permissions | 1738 | // Check if we're allowed to mess with permissions |
1739 | if (!Permissions.IsGod(remoteClient.AgentId)) // Not a god | 1739 | if (!Permissions.IsGod(remoteClient.AgentId)) // Not a god |
1740 | { | 1740 | { |
1741 | bool noChange; | ||
1741 | if (remoteClient.AgentId != part.OwnerID) // Not owner | 1742 | if (remoteClient.AgentId != part.OwnerID) // Not owner |
1742 | { | 1743 | { |
1744 | noChange = true; | ||
1745 | if(itemInfo.OwnerID == UUID.Zero && itemInfo.GroupID != UUID.Zero) | ||
1746 | { | ||
1747 | if(remoteClient.IsGroupMember(itemInfo.GroupID)) | ||
1748 | { | ||
1749 | ulong powers = remoteClient.GetGroupPowers(itemInfo.GroupID); | ||
1750 | if((powers & (ulong)GroupPowers.ObjectManipulate) != 0) | ||
1751 | noChange = false; | ||
1752 | } | ||
1753 | } | ||
1754 | } | ||
1755 | else | ||
1756 | noChange = false; | ||
1757 | |||
1758 | if(noChange) | ||
1759 | { | ||
1743 | // Friends and group members can't change any perms | 1760 | // Friends and group members can't change any perms |
1744 | itemInfo.BasePermissions = currentItem.BasePermissions; | 1761 | itemInfo.BasePermissions = currentItem.BasePermissions; |
1745 | itemInfo.EveryonePermissions = currentItem.EveryonePermissions; | 1762 | itemInfo.EveryonePermissions = currentItem.EveryonePermissions; |