aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs18
1 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
index f90285d..84f33d1 100644
--- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
+++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
@@ -208,19 +208,13 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
208 208
209 perms = group.GetEffectivePermissions(false); 209 perms = group.GetEffectivePermissions(false);
210 210
211// if((perms & (uint)PermissionMask.FoldedMask) != 0) 211 PermissionsUtil.ApplyFoldedPermissions(perms, ref perms);
212 { 212
213 if ((perms & (uint)PermissionMask.FoldedCopy) == 0)
214 perms &= ~(uint)PermissionMask.Copy;
215 if ((perms & (uint)PermissionMask.FoldedTransfer) == 0)
216 perms &= ~(uint)PermissionMask.Transfer;
217 if ((perms & (uint)PermissionMask.FoldedModify) == 0)
218 perms &= ~(uint)PermissionMask.Modify;
219 if ((perms & (uint)PermissionMask.FoldedExport) == 0)
220 perms &= ~(uint)PermissionMask.Export;
221 }
222 item.BasePermissions = perms & part.NextOwnerMask; 213 item.BasePermissions = perms & part.NextOwnerMask;
223 item.CurrentPermissions = perms & part.NextOwnerMask; 214
215// we need to rebuild folded here
216
217 item.CurrentPermissions = item.BasePermissions;
224 item.NextPermissions = part.NextOwnerMask; 218 item.NextPermissions = part.NextOwnerMask;
225 item.EveryOnePermissions = part.EveryoneMask & 219 item.EveryOnePermissions = part.EveryoneMask &
226 part.NextOwnerMask; 220 part.NextOwnerMask;