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,9 +1276,17 @@ namespace OpenSim.Region.CoreModules.World.Permissions
|
||||||
{
|
{
|
||||||
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];
|
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];
|
||||||
|
|
||||||
|
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
|
||||||
|
{
|
||||||
|
if ((task.GetEffectivePermissions() & PERM_COPY) != PERM_COPY)
|
||||||
|
permission = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return permission;
|
return permission;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue