mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Added a check to CanDuplicateObject(), to stop duplicating prims that contains inventory items that you don't have permission to copy
This commit is contained in:
@@ -670,6 +670,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||
//They can't even edit the object
|
||||
return false;
|
||||
}
|
||||
|
||||
SceneObjectPart part = scene.GetSceneObjectPart(objectID);
|
||||
if (part == null)
|
||||
return false;
|
||||
@@ -677,6 +678,9 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||
if ((part.OwnerMask & PERM_COPY) == 0)
|
||||
return false;
|
||||
|
||||
if ((part.ParentGroup.GetEffectivePermissions() & PERM_COPY) == 0)
|
||||
return false;
|
||||
|
||||
//If they can rez, they can duplicate
|
||||
return CanRezObject(objectCount, owner, objectPosition, scene);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user