Dont' trust the viewer! Fix a permission slam error caused by trusting
the viewer too much.viewer-2-initial-appearance
parent
914e4b319e
commit
705f4e1e4b
|
@ -637,6 +637,12 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
|||
rootPart.Name = item.Name;
|
||||
rootPart.Description = item.Description;
|
||||
|
||||
if ((item.Flags & (uint)InventoryItemFlags.ObjectSlamSale) != 0)
|
||||
{
|
||||
rootPart.ObjectSaleType = item.SaleType;
|
||||
rootPart.SalePrice = item.SalePrice;
|
||||
}
|
||||
|
||||
group.SetGroup(remoteClient.ActiveGroupId, remoteClient);
|
||||
if ((rootPart.OwnerID != item.Owner) ||
|
||||
(item.CurrentPermissions & 16) != 0 || // Magic number
|
||||
|
|
|
@ -326,7 +326,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
if (UUID.Zero == transactionID)
|
||||
{
|
||||
item.Flags = itemUpd.Flags;
|
||||
item.Name = itemUpd.Name;
|
||||
item.Description = itemUpd.Description;
|
||||
if (item.NextPermissions != (itemUpd.NextPermissions & item.BasePermissions))
|
||||
|
|
Loading…
Reference in New Issue