buysell: fix permissions masks hierachy
parent
522695c821
commit
fedd1a93d2
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue