X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/09c5740b5bb94c75a5c8c83cdbb80ae7b5ccbdf4..77851bac7bf76473de33b7bbab00bc1b3d834cb1:/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