mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 04:15:42 +08:00
DEV: Use blank instead of NOT present
Follow up to: 75069ff17917f9b8969ae0e8e0e271cdf1e38c78
This commit is contained in:
parent
1fb81e9f56
commit
79ec686ec9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user