From 09f50911021c078af89dbd8b5c0060152ad96c5d Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 24 May 2017 23:39:09 +0900 Subject: [PATCH] Show error message to suspended user (#3281) --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5037bbe8a6..9cb397aa82 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base end def check_suspension - head 403 if current_user.account.suspended? + forbidden if current_user.account.suspended? end protected