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 #38380.6.6-post-fixes
parent
fa786c480b
commit
9d07584ea1
|
@ -1309,8 +1309,16 @@ 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.GetEffectivePermissions() & (PERM_COPY | PERM_TRANS)) != (PERM_COPY | PERM_TRANS))
|
if (task.OwnerID != userID)
|
||||||
permission = false;
|
{
|
||||||
|
if ((task.GetEffectivePermissions() & (PERM_COPY | PERM_TRANS)) != (PERM_COPY | PERM_TRANS))
|
||||||
|
permission = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ((task.GetEffectivePermissions() & PERM_COPY) != PERM_COPY)
|
||||||
|
permission = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue