Partial permissions fix for boxed items.
parent
72048169c0
commit
2c6a410e90
|
@ -2171,5 +2171,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
m_sceneGraph.LinkObjects(root, children);
|
m_sceneGraph.LinkObjects(root, children);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string PermissionString(uint permissions)
|
||||||
|
{
|
||||||
|
PermissionMask perms = (PermissionMask)permissions &
|
||||||
|
(PermissionMask.Move |
|
||||||
|
PermissionMask.Copy |
|
||||||
|
PermissionMask.Transfer |
|
||||||
|
PermissionMask.Modify);
|
||||||
|
return perms.ToString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1162,8 +1162,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
uint mask=0x7fffffff;
|
uint mask=0x7fffffff;
|
||||||
|
|
||||||
foreach (TaskInventoryItem item in m_items.Values)
|
foreach (TaskInventoryItem item in m_items.Values)
|
||||||
{
|
|
||||||
if (item.InvType != (int)InventoryType.Object)
|
|
||||||
{
|
{
|
||||||
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
|
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
|
||||||
mask &= ~((uint)PermissionMask.Copy >> 13);
|
mask &= ~((uint)PermissionMask.Copy >> 13);
|
||||||
|
@ -1171,8 +1169,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
mask &= ~((uint)PermissionMask.Transfer >> 13);
|
mask &= ~((uint)PermissionMask.Transfer >> 13);
|
||||||
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Modify) == 0)
|
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Modify) == 0)
|
||||||
mask &= ~((uint)PermissionMask.Modify >> 13);
|
mask &= ~((uint)PermissionMask.Modify >> 13);
|
||||||
}
|
|
||||||
else
|
if (item.InvType == (int)InventoryType.Object)
|
||||||
{
|
{
|
||||||
if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
|
if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
|
||||||
mask &= ~((uint)PermissionMask.Copy >> 13);
|
mask &= ~((uint)PermissionMask.Copy >> 13);
|
||||||
|
|
Loading…
Reference in New Issue