Allow "Take Copy" with copy only permissions if you own the object. Trans

is only required when taing an object you don't own, now.
Fixes Mantis #3838
0.6.6-post-fixes
Melanie Thielker 2009-06-24 23:45:21 +00:00
parent fa786c480b
commit 9d07584ea1
1 changed files with 10 additions and 2 deletions

View File

@ -1309,10 +1309,18 @@ namespace OpenSim.Region.CoreModules.World.Permissions
if ((task.RootPart.EveryoneMask & PERM_COPY) != 0) if ((task.RootPart.EveryoneMask & PERM_COPY) != 0)
permission = true; permission = true;
if (task.OwnerID != userID)
{
if ((task.GetEffectivePermissions() & (PERM_COPY | PERM_TRANS)) != (PERM_COPY | PERM_TRANS)) if ((task.GetEffectivePermissions() & (PERM_COPY | PERM_TRANS)) != (PERM_COPY | PERM_TRANS))
permission = false; permission = false;
} }
else else
{
if ((task.GetEffectivePermissions() & PERM_COPY) != PERM_COPY)
permission = false;
}
}
else
{ {
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID]; SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];