diff options
author | Diva Canto | 2013-08-03 20:36:30 -0700 |
---|---|---|
committer | Diva Canto | 2013-08-03 20:36:30 -0700 |
commit | 09cb2a37dd73296290c306f38412c1743b9eb820 (patch) | |
tree | 07eed4e123986d782212aa7f8bec60040c2b6711 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | HG: If OutboundPermission is set to false, let's enforce stricter permissions... (diff) | |
download | opensim-SC_OLD-09cb2a37dd73296290c306f38412c1743b9eb820.zip opensim-SC_OLD-09cb2a37dd73296290c306f38412c1743b9eb820.tar.gz opensim-SC_OLD-09cb2a37dd73296290c306f38412c1743b9eb820.tar.bz2 opensim-SC_OLD-09cb2a37dd73296290c306f38412c1743b9eb820.tar.xz |
More on HG inventory and OutboundPermission: disallowing giving inventory to foreigners if OutboundPermission is false
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 2d1a3ef..8e4e307 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -556,6 +556,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
556 | { | 556 | { |
557 | //Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); | 557 | //Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); |
558 | 558 | ||
559 | if (!Permissions.CanTransferUserInventory(itemId, senderId, recipient)) | ||
560 | return null; | ||
561 | |||
559 | InventoryItemBase item = new InventoryItemBase(itemId, senderId); | 562 | InventoryItemBase item = new InventoryItemBase(itemId, senderId); |
560 | item = InventoryService.GetItem(item); | 563 | item = InventoryService.GetItem(item); |
561 | 564 | ||