mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +01:00
start using user policy
This commit is contained in:
@@ -1846,7 +1846,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
|
||||
private bool IsLiveTvEnabled(User user)
|
||||
{
|
||||
return user.Configuration.EnableLiveTvAccess && ActiveService != null;
|
||||
return user.Policy.EnableLiveTvAccess && ActiveService != null;
|
||||
}
|
||||
|
||||
public IEnumerable<User> GetEnabledUsers()
|
||||
@@ -1854,7 +1854,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
var service = ActiveService;
|
||||
|
||||
return _userManager.Users
|
||||
.Where(i => i.Configuration.EnableLiveTvAccess && service != null);
|
||||
.Where(i => i.Policy.EnableLiveTvAccess && service != null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user