aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-17 14:12:17 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-17 14:12:17 -0400
commita55449628b2e0376fdc8100cb3c804c50b0e8547 (patch)
tree72fe580cb7c066a3cce3cc8738a8df5048a5faa7 /MediaBrowser.Api/Library/LibraryService.cs
parentde0336520180fb14cb4ea97e572d9b64f05ed3c2 (diff)
log request headers
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs16
1 files changed, 1 insertions, 15 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index 56f66bd6b..0476927d7 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -466,24 +466,10 @@ namespace MediaBrowser.Api.Library
/// Deletes the specified request.
/// </summary>
/// <param name="request">The request.</param>
- public void Delete(DeleteItem request)
- {
- var task = DeleteItem(request);
-
- Task.WaitAll(task);
- }
-
- private Task DeleteItem(DeleteItem request)
+ public Task Delete(DeleteItem request)
{
var item = _libraryManager.GetItemById(request.Id);
- var session = GetSession();
-
- if (!session.UserId.HasValue || !_userManager.GetUserById(session.UserId.Value).Configuration.EnableContentDeletion)
- {
- throw new UnauthorizedAccessException("This operation requires a logged in user with delete access.");
- }
-
return _libraryManager.DeleteItem(item);
}