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

@@ -480,7 +480,7 @@ namespace MediaBrowser.Controller.Entities
return true;
}
var allowed = user.GetPreference<Guid>(PreferenceKind.EnableContentDeletionFromFolders);
var allowed = user.GetPreferenceValues<Guid>(PreferenceKind.EnableContentDeletionFromFolders);
if (SourceType == SourceType.Channel)
{
@@ -1909,7 +1909,7 @@ namespace MediaBrowser.Controller.Entities
return false;
}
return user.GetPreference<UnratedItem>(PreferenceKind.BlockUnratedItems).Contains(GetBlockUnratedType());
return user.GetPreferenceValues<UnratedItem>(PreferenceKind.BlockUnratedItems).Contains(GetBlockUnratedType());
}
/// <summary>