|
|
@ -224,7 +224,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
request.IncludeItemTypes = "Playlist";
|
|
|
|
request.IncludeItemTypes = "Playlist";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
|
|
|
|
if (!(item is UserRootFolder) && !user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Logger.LogWarning("{UserName} is not permitted to access Library {ItemName}.", user.Name, item.Name);
|
|
|
|
Logger.LogWarning("{UserName} is not permitted to access Library {ItemName}.", user.Name, item.Name);
|
|
|
|
return new QueryResult<BaseItem>
|
|
|
|
return new QueryResult<BaseItem>
|
|
|
|