FIX: === and a better constant, thanks @ZogStriP

This commit is contained in:
Robin Ward 2017-02-13 13:14:19 -05:00
parent 9d4405d602
commit 0e58e393a1

View File

@ -923,7 +923,7 @@ class User < ActiveRecord::Base
end
def clear_global_notice_if_needed
return if id === Discourse.system_user.id
return if id == Discourse::SYSTEM_USER_ID
if admin && SiteSetting.has_login_hint
SiteSetting.has_login_hint = false