mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
Moved some logic into domain entities, which is possible now that we're embracing DTO's
This commit is contained in:
parent
5c6ec34a9c
commit
ed018a8bea
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user