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

This commit is contained in:
Oren Hurvitz
2014-04-16 13:29:56 +03:00
parent 3185db7f94
commit 090f9bcece

View File

@@ -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;