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
parent
06b16c5b3a
commit
f6ba67f1a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue