diff options
author | Melanie | 2011-01-12 17:40:21 +0100 |
---|---|---|
committer | Melanie | 2011-01-12 17:40:21 +0100 |
commit | f59b55d930b4a715d2ea5b99d2b3f5494073b1ae (patch) | |
tree | 1ae3bc680fc64c2768996f3caa6e251a7401d82e /OpenSim/Region/CoreModules/Framework | |
parent | Fix direct item give permissions (diff) | |
download | opensim-SC-f59b55d930b4a715d2ea5b99d2b3f5494073b1ae.zip opensim-SC-f59b55d930b4a715d2ea5b99d2b3f5494073b1ae.tar.gz opensim-SC-f59b55d930b4a715d2ea5b99d2b3f5494073b1ae.tar.bz2 opensim-SC-f59b55d930b4a715d2ea5b99d2b3f5494073b1ae.tar.xz |
Dont' trust the viewer! Fix a permission slam error caused by trusting
the viewer too much.
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 10e74ea..0163060 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -786,12 +786,16 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
786 | { | 786 | { |
787 | rootPart.Name = item.Name; | 787 | rootPart.Name = item.Name; |
788 | rootPart.Description = item.Description; | 788 | rootPart.Description = item.Description; |
789 | } | ||
790 | if ((item.Flags & (uint)InventoryItemFlags.ObjectSlamSale) != 0) | ||
791 | { | ||
789 | rootPart.ObjectSaleType = item.SaleType; | 792 | rootPart.ObjectSaleType = item.SaleType; |
790 | rootPart.SalePrice = item.SalePrice; | 793 | rootPart.SalePrice = item.SalePrice; |
791 | } | 794 | } |
792 | 795 | ||
793 | group.SetGroup(remoteClient.ActiveGroupId, remoteClient); | 796 | group.SetGroup(remoteClient.ActiveGroupId, remoteClient); |
794 | // TODO: Remove the magic number badness | 797 | // TODO: Remove the magic number badness |
798 | |||
795 | if ((rootPart.OwnerID != item.Owner) || | 799 | if ((rootPart.OwnerID != item.Owner) || |
796 | (item.CurrentPermissions & 16) != 0 || // Magic number | 800 | (item.CurrentPermissions & 16) != 0 || // Magic number |
797 | (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0) | 801 | (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0) |