mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
Used the term suspended instead of banned.
This commit is contained in:
@ -26,7 +26,7 @@ class Auth::DefaultCurrentUserProvider
|
||||
current_user = User.where(auth_token: auth_token).first
|
||||
end
|
||||
|
||||
if current_user && current_user.is_banned?
|
||||
if current_user && current_user.suspended?
|
||||
current_user = nil
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user