Stop users taking a copy of a in world prim that contains inventory items that have no copy permission set.

0.6.1-post-fixes
MW 2008-12-17 13:32:01 +00:00
parent 6c8f9078ef
commit 027ae58dc4
1 changed files with 10 additions and 0 deletions

View File

@ -1109,6 +1109,16 @@ namespace OpenSim.Region.Environment.Modules.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) == 0)
permission = false;
}
else
{
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];
if ((task.GetEffectivePermissions() & PERM_COPY) == 0)
permission = false;
} }
return permission; return permission;
} }