Fix non user specific lib data being returned

Fix so that the impersonation user is always used in queries that return
secific video and music items.
This commit is contained in:
ScottRapsey 2013-03-12 13:27:30 +11:00
parent 16cbf06eab
commit 0933a2dd53

View File

@ -472,7 +472,7 @@ namespace MediaBrowser.Plugins.Dlna.Model
{
get
{
return this.MBItem.RecursiveChildren.OfType<MediaBrowser.Controller.Entities.TV.Season>().Select(i => (ModelBase)(new VideoSeasonContainer(this.User, mbItem: i, parent: this)));
return this.MBItem.GetRecursiveChildren(this.User).OfType<MediaBrowser.Controller.Entities.TV.Season>().Select(i => (ModelBase)(new VideoSeasonContainer(this.User, mbItem: i, parent: this)));
}
}
@ -502,7 +502,7 @@ namespace MediaBrowser.Plugins.Dlna.Model
{
get
{
return this.MBItem.RecursiveChildren.OfType<Video>().Select(i => (ModelBase)(new VideoItem(this.User, mbItem: i, parent: this)));
return this.MBItem.GetRecursiveChildren(this.User).OfType<Video>().Select(i => (ModelBase)(new VideoItem(this.User, mbItem: i, parent: this)));
}
}