mirror of
git://opensimulator.org/git/opensim
synced 2026-08-14 00:58:07 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user