From 33c4631c6d1912fb4e5af65ece7a2aa80c8b0005 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 5 Feb 2008 13:02:03 +0000 Subject: some small changes, like adding a couple of extra methods to IInventoryServices so that a check can be done to see if a inventory set exists for a certain user. --- .../Region/Communications/Local/LocalInventoryService.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/Communications/Local/LocalInventoryService.cs') diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index 730c40f..da4e473 100644 --- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs +++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs @@ -83,6 +83,20 @@ namespace OpenSim.Region.Communications.Local DeleteItem(item); } + public override bool HasInventoryForUser(LLUUID userID) + { + InventoryFolderBase root = RequestUsersRoot(userID); + if (root == null) + { + return false; + } + else + { + return true; + } + } + + /// /// Send the given inventory folder and its item contents back to the requester. /// -- cgit v1.1