diff options
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
OpenSim/Region/Framework/Scenes/Scene.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 8f6073a..550ab87 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -551,6 +551,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
551 | { | 551 | { |
552 | //Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); | 552 | //Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); |
553 | 553 | ||
554 | if (!Permissions.CanTransferUserInventory(itemId, senderId, recipient)) | ||
555 | return null; | ||
556 | |||
554 | InventoryItemBase item = new InventoryItemBase(itemId, senderId); | 557 | InventoryItemBase item = new InventoryItemBase(itemId, senderId); |
555 | item = InventoryService.GetItem(item); | 558 | item = InventoryService.GetItem(item); |
556 | 559 | ||
@@ -2127,7 +2130,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2127 | { | 2130 | { |
2128 | // If we don't have permission, stop right here | 2131 | // If we don't have permission, stop right here |
2129 | if (!permissionToTakeCopy) | 2132 | if (!permissionToTakeCopy) |
2133 | { | ||
2134 | remoteClient.SendAlertMessage("You don't have permission to take the object"); | ||
2130 | return; | 2135 | return; |
2136 | } | ||
2131 | 2137 | ||
2132 | permissionToTake = true; | 2138 | permissionToTake = true; |
2133 | // Don't delete | 2139 | // Don't delete |