Backport r9921:

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.
0.6.5-post-fixes
Melanie Thielker 2009-06-24 23:48:41 +00:00
parent 06b16c5b3a
commit f6ba67f1a3
1 changed files with 10 additions and 2 deletions

View File

@ -1276,8 +1276,16 @@ namespace OpenSim.Region.CoreModules.World.Permissions
{
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];
if ((task.GetEffectivePermissions() & (PERM_COPY | PERM_TRANS)) != (PERM_COPY | PERM_TRANS))
permission = false;
if (task.OwnerID != userID)
{
if ((task.GetEffectivePermissions() & (PERM_COPY | PERM_TRANS)) != (PERM_COPY | PERM_TRANS))
permission = false;
}
else
{
if ((task.GetEffectivePermissions() & PERM_COPY) != PERM_COPY)
permission = false;
}
}
return permission;