mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05:00
FIX: === and a better constant, thanks @ZogStriP
This commit is contained in:
+1
-1
@@ -923,7 +923,7 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def clear_global_notice_if_needed
|
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
|
if admin && SiteSetting.has_login_hint
|
||||||
SiteSetting.has_login_hint = false
|
SiteSetting.has_login_hint = false
|
||||||
|
|||||||
Reference in New Issue
Block a user