add additional view settings

This commit is contained in:
Luke Pulverenti
2014-07-01 00:06:28 -04:00
parent f77209cf77
commit 43943657b7
13 changed files with 114 additions and 40 deletions

View File

@@ -134,6 +134,11 @@ namespace MediaBrowser.Controller.Entities
}
}
public virtual bool IsHiddenFromUser(User user)
{
return false;
}
[IgnoreDataMember]
public virtual bool IsOwnedItem
{

View File

@@ -809,7 +809,10 @@ namespace MediaBrowser.Controller.Entities
{
if (filter == null || filter(child))
{
list.Add(child);
if (!child.IsHiddenFromUser(user))
{
list.Add(child);
}
}
if (recursive && child.IsFolder)