Partial permissions fix for boxed items.
parent
dd154f7403
commit
7cfe17b5b3
|
@ -2131,5 +2131,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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -946,6 +946,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
foreach (TaskInventoryItem item in m_items.Values)
|
foreach (TaskInventoryItem item in m_items.Values)
|
||||||
{
|
{
|
||||||
|
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
|
||||||
|
mask &= ~((uint)PermissionMask.Copy >> 13);
|
||||||
|
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Transfer) == 0)
|
||||||
|
mask &= ~((uint)PermissionMask.Transfer >> 13);
|
||||||
|
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Modify) == 0)
|
||||||
|
mask &= ~((uint)PermissionMask.Modify >> 13);
|
||||||
|
|
||||||
if (item.InvType != (int)InventoryType.Object)
|
if (item.InvType != (int)InventoryType.Object)
|
||||||
{
|
{
|
||||||
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
|
if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
|
||||||
|
|
Loading…
Reference in New Issue