Use a more descriptive function name

This commit is contained in:
crobibero
2020-12-13 08:15:26 -07:00
parent 8f4a4a3cc5
commit ee23d06154
12 changed files with 25 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.Channels
{
public override bool IsVisible(User user)
{
var blockedChannelsPreference = user.GetPreference<Guid>(PreferenceKind.BlockedChannels);
var blockedChannelsPreference = user.GetPreferenceValues<Guid>(PreferenceKind.BlockedChannels);
if (blockedChannelsPreference.Length != 0)
{
if (blockedChannelsPreference.Contains(Id))
@@ -28,7 +28,7 @@ namespace MediaBrowser.Controller.Channels
else
{
if (!user.HasPermission(PermissionKind.EnableAllChannels)
&& !user.GetPreference<Guid>(PreferenceKind.EnabledChannels).Contains(Id))
&& !user.GetPreferenceValues<Guid>(PreferenceKind.EnabledChannels).Contains(Id))
{
return false;
}