mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Stop users taking a copy of a in world prim that contains inventory items that have no copy permission set.
This commit is contained in:
@@ -1109,6 +1109,16 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||
|
||||
if ((task.RootPart.EveryoneMask & PERM_COPY) != 0)
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user