Actually set BlockUnratedItems

This commit is contained in:
Patrick Barron 2020-06-13 18:23:13 -04:00
parent aa4ac5902e
commit 8405ae9b1f

View File

@ -657,6 +657,10 @@ namespace Jellyfin.Server.Implementations.Users
user.AccessSchedules.Add(policyAccessSchedule); user.AccessSchedules.Add(policyAccessSchedule);
} }
// TODO: fix this at some point
user.SetPreference(
PreferenceKind.BlockUnratedItems,
policy.BlockUnratedItems?.Select(i => i.ToString()).ToArray() ?? Array.Empty<string>());
user.SetPreference(PreferenceKind.BlockedTags, policy.BlockedTags); user.SetPreference(PreferenceKind.BlockedTags, policy.BlockedTags);
user.SetPreference(PreferenceKind.EnabledChannels, policy.EnabledChannels); user.SetPreference(PreferenceKind.EnabledChannels, policy.EnabledChannels);
user.SetPreference(PreferenceKind.EnabledDevices, policy.EnabledDevices); user.SetPreference(PreferenceKind.EnabledDevices, policy.EnabledDevices);