From 090f9bcece2d8688c8d9c0db3ca50ff387c1a107 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 16 Apr 2014 13:29:56 +0300 Subject: Fixed: once a user has rezzed an object, they could then duplicate it as much as they wanted even if the parcel's permissions had since been changed to disallow rezzing --- OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index e961922..39f5a4a 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs @@ -1009,9 +1009,11 @@ namespace OpenSim.Region.CoreModules.World.Permissions return false; if (part.OwnerID == owner) - return ((part.OwnerMask & PERM_COPY) != 0); - - if (part.GroupID != UUID.Zero) + { + if ((part.OwnerMask & PERM_COPY) == 0) + return false; + } + else if (part.GroupID != UUID.Zero) { if ((part.OwnerID == part.GroupID) && ((owner != part.LastOwnerID) || ((part.GroupMask & PERM_TRANS) == 0))) return false; -- cgit v1.1