mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
rename sog.GetEffectivePermissions() since its use is now limited to more specific task, and no longer on current effective(full) path. Note that change ownermask start to be current ownermask, and filter it to all parts basemask
This commit is contained in:
@@ -206,12 +206,12 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
|
||||
item.InvType = (int)InventoryType.Object;
|
||||
item.Folder = categoryID;
|
||||
|
||||
perms = group.GetEffectivePermissions(false);
|
||||
|
||||
perms = group.CurrentAndFoldedNextPermissions();
|
||||
// apply parts inventory next perms
|
||||
PermissionsUtil.ApplyNoModFoldedPermissions(perms, ref perms);
|
||||
|
||||
perms &= part.NextOwnerMask;
|
||||
|
||||
// change to next owner perms
|
||||
perms &= part.NextOwnerMask;
|
||||
// update folded
|
||||
perms = PermissionsUtil.FixAndFoldPermissions(perms);
|
||||
|
||||
item.BasePermissions = perms;
|
||||
|
||||
Reference in New Issue
Block a user