commit: 676ba50601d04dcd15930bb92aea918cb6cdf041
parent: bbc3db8b200d4570df8a9129e51bbf09470f02f3
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Wed, 24 May 2017 23:39:09 +0900
Show error message to suspended user (#3281)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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