mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Dont' trust the viewer! Fix a permission slam error caused by trusting
the viewer too much.
This commit is contained in:
@@ -786,12 +786,16 @@ 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);
|
||||
// TODO: Remove the magic number badness
|
||||
|
||||
if ((rootPart.OwnerID != item.Owner) ||
|
||||
(item.CurrentPermissions & 16) != 0 || // Magic number
|
||||
(item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0)
|
||||
|
||||
@@ -308,7 +308,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))
|
||||
|
||||
Reference in New Issue
Block a user