mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Fix bug where an avatar that had an object they owned attached through llAttachToAvatar() or osForceAttachToAvatar() would wrongly have next permissions come into play when they detached that object and rezzed it in scene.
This is because the attachments module code was setting the 'object slam' bit by using PermissionMask.All Solution here is to route the attachment item creation call through the existing inventory code in BasicInventoryAccessModule rather than copy/pasted code in AttachmentsModule itself.
This commit is contained in:
@@ -49,11 +49,15 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// <param name="folderID"></param>
|
||||
/// <param name="objectGroups"></param>
|
||||
/// <param name="remoteClient"></param>
|
||||
/// <param name="asAttachment">
|
||||
/// Should be true if the object(s) are begin taken as attachments. False otherwise.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// Returns the UUID of the newly created item asset (not the item itself).
|
||||
/// FIXME: This is not very useful. It would be far more useful to return a list of items instead.
|
||||
/// A list of the items created. If there was more than one object and objects are not being coaleseced in
|
||||
/// inventory, then the order of items is in the same order as the input objects.
|
||||
/// </returns>
|
||||
UUID CopyToInventory(DeRezAction action, UUID folderID, List<SceneObjectGroup> objectGroups, IClientAPI remoteClient);
|
||||
List<InventoryItemBase> CopyToInventory(
|
||||
DeRezAction action, UUID folderID, List<SceneObjectGroup> objectGroups, IClientAPI remoteClient, bool asAttachment);
|
||||
|
||||
/// <summary>
|
||||
/// Rez an object into the scene from the user's inventory
|
||||
|
||||
Reference in New Issue
Block a user