mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Stop owners from duplicating no-copy objects in-world
This commit is contained in:
@@ -670,6 +670,13 @@ 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;
|
||||
|
||||
if ((part.OwnerMask & 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