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 #3838
0.6.6-post-fixes
Melanie Thielker 2009-06-24 23:45:21 +00:00
parent fa786c480b
commit 9d07584ea1
1 changed files with 10 additions and 2 deletions

View File

@ -1309,8 +1309,16 @@ namespace OpenSim.Region.CoreModules.World.Permissions
if ((task.RootPart.EveryoneMask & PERM_COPY) != 0)
permission = true;
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;
}
}
else
{