DEV: Use blank instead of NOT present

Follow up to: 75069ff179
This commit is contained in:
Blake Erickson 2020-01-18 07:30:16 -07:00
parent 1fb81e9f56
commit 79ec686ec9
1 changed files with 1 additions and 1 deletions

View File

@ -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