buysell: fix permissions masks hierachy

httptests
UbitUmarov 2017-04-29 23:09:32 +01:00
parent 522695c821
commit fedd1a93d2
1 changed files with 10 additions and 8 deletions

View File

@ -208,18 +208,20 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
perms = group.GetEffectivePermissions(false); perms = group.GetEffectivePermissions(false);
PermissionsUtil.ApplyFoldedPermissions(perms, ref perms); PermissionsUtil.ApplyNoModFoldedPermissions(perms, ref perms);
perms &= part.NextOwnerMask; perms &= part.NextOwnerMask;
item.BasePermissions = PermissionsUtil.FixAndFoldPermissions(perms); perms = PermissionsUtil.FixAndFoldPermissions(perms);
item.CurrentPermissions = item.BasePermissions; item.BasePermissions = perms;
item.NextPermissions = part.NextOwnerMask; item.CurrentPermissions = perms;
item.EveryOnePermissions = part.EveryoneMask &
part.NextOwnerMask; perms &= part.NextOwnerMask;
item.GroupPermissions = part.GroupMask & item.NextPermissions = perms;
part.NextOwnerMask;
item.EveryOnePermissions = part.EveryoneMask & perms;
item.GroupPermissions = part.GroupMask & perms;
item.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm; item.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm;
item.CreationDate = Util.UnixTimeSinceEpoch(); item.CreationDate = Util.UnixTimeSinceEpoch();