diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-24 23:39:09 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-24 16:39:09 +0200 |
commit | 676ba50601d04dcd15930bb92aea918cb6cdf041 (patch) | |
tree | 75bbbe29aa354dd3e5d9f25824686851ba6f6f18 /app | |
parent | bbc3db8b200d4570df8a9129e51bbf09470f02f3 (diff) |
Show error message to suspended user (#3281)
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5037bbe8a..9cb397aa8 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 |