X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/09c5740b5bb94c75a5c8c83cdbb80ae7b5ccbdf4..c6f844603d9c5a46bb3dc34dfb0cdff1145f5715:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 012ba2446..c701d8add 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -80,9 +80,9 @@ class ApplicationController < ActionController::Base end # check if the user has been banned - unless @user.nil? or @user.blocks.empty? + unless @user.nil? or @user.active_blocks.empty? # NOTE: need slightly more helpful message than this. - render :text => "You got banned!", :status => :forbidden + render :text => t('application.setup_user_auth.blocked'), :status => :forbidden end end