diff --git a/app/services/user_updater.rb b/app/services/user_updater.rb index d4a3a286000..30d6d46e915 100644 --- a/app/services/user_updater.rb +++ b/app/services/user_updater.rb @@ -90,7 +90,7 @@ class UserUpdater user.primary_group_id = attributes[:primary_group_id] elsif SiteSetting.user_selected_primary_groups && - !attributes[:primary_group_id].present? + attributes[:primary_group_id].blank? user.primary_group_id = nil end