mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
enforce coding convention
replaced every `and` by `&&` and every `or` by `||`
This commit is contained in:
@ -15,7 +15,7 @@ class SessionController < ApplicationController
|
||||
if @user.present?
|
||||
|
||||
# If the site requires user approval and the user is not approved yet
|
||||
if SiteSetting.must_approve_users? and !@user.approved?
|
||||
if SiteSetting.must_approve_users? && !@user.approved?
|
||||
render :json => {error: I18n.t("login.not_approved")}
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user