コード例 #1
0
        public InventoryFolderBase GetFolderAttributes(UUID userId, UUID folderId)
        {
            InventoryFolderBase folder = _storage.GetFolderAttributes(folderId);

            if (folder != null && folder.Owner != userId)
            {
                throw new InventorySecurityException(String.Format("Not retrieving folder {0} attributes for user {1}. User does not own the folder", folderId, userId));
            }

            return(folder);
        }