From 027ae58dc4d210ada4b0ecf1a4861649a8c411ae Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 17 Dec 2008 13:32:01 +0000 Subject: Stop users taking a copy of a in world prim that contains inventory items that have no copy permission set. --- .../Environment/Modules/World/Permissions/PermissionsModule.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/World/Permissions') diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 964e39c..e2ca975 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs @@ -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; } -- cgit v1.1