mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
sync fixes
This commit is contained in:
@@ -860,6 +860,13 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
private async Task UpdateUserPolicy(User user, UserPolicy userPolicy, bool fireEvent)
|
||||
{
|
||||
// The xml serializer will output differently if the type is not exact
|
||||
if (userPolicy.GetType() != typeof(UserPolicy))
|
||||
{
|
||||
var json = _jsonSerializer.SerializeToString(userPolicy);
|
||||
userPolicy = _jsonSerializer.DeserializeFromString<UserPolicy>(json);
|
||||
}
|
||||
|
||||
var updateConfig = user.Policy.IsAdministrator != userPolicy.IsAdministrator ||
|
||||
user.Policy.EnableLiveTvManagement != userPolicy.EnableLiveTvManagement ||
|
||||
user.Policy.EnableLiveTvAccess != userPolicy.EnableLiveTvAccess ||
|
||||
|
||||
Reference in New Issue
Block a user