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);
PermissionsUtil.ApplyFoldedPermissions(perms, ref perms);
PermissionsUtil.ApplyNoModFoldedPermissions(perms, ref perms);
perms &= part.NextOwnerMask;
item.BasePermissions = PermissionsUtil.FixAndFoldPermissions(perms);
perms = PermissionsUtil.FixAndFoldPermissions(perms);
item.CurrentPermissions = item.BasePermissions;
item.NextPermissions = part.NextOwnerMask;
item.EveryOnePermissions = part.EveryoneMask &
part.NextOwnerMask;
item.GroupPermissions = part.GroupMask &
part.NextOwnerMask;
item.BasePermissions = perms;
item.CurrentPermissions = perms;
perms &= part.NextOwnerMask;
item.NextPermissions = perms;
item.EveryOnePermissions = part.EveryoneMask & perms;
item.GroupPermissions = part.GroupMask & perms;
item.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm;
item.CreationDate = Util.UnixTimeSinceEpoch();