Moved some logic into domain entities, which is possible now that we're embracing DTO's

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-17 13:37:26 -04:00
parent 5c6ec34a9c
commit ed018a8bea
9 changed files with 177 additions and 170 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using MediaBrowser.Model.Users;
namespace MediaBrowser.Model.Entities
{
@@ -101,5 +102,13 @@ namespace MediaBrowser.Model.Entities
{
SetProviderId(provider.ToString(), value);
}
/// <summary>
/// Determines if a given user has access to this item
/// </summary>
internal bool IsParentalAllowed(User user)
{
return true;
}
}
}