mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00:00
wrong conditional
This commit is contained in:
parent
4aa1122ef2
commit
325e28c3c8
@ -288,7 +288,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def update_ip_address!(new_ip_address)
|
||||
unless ip_address == new_ip_address && new_ip_address.blank?
|
||||
unless ip_address == new_ip_address || new_ip_address.blank?
|
||||
update_column(:ip_address, new_ip_address)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user