From 9d07584ea1bb73ba87f10486a6c2e695983395ef Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 24 Jun 2009 23:45:21 +0000 Subject: 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 --- .../CoreModules/World/Permissions/PermissionsModule.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 92d9e6c..99035b6 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs @@ -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 { -- cgit v1.1