mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:52:45 +08:00
FIX: === and a better constant, thanks @ZogStriP
This commit is contained in:
parent
9d4405d602
commit
0e58e393a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user