about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-24 23:39:09 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-24 16:39:09 +0200
commit676ba50601d04dcd15930bb92aea918cb6cdf041 (patch)
tree75bbbe29aa354dd3e5d9f25824686851ba6f6f18 /app/controllers
parentbbc3db8b200d4570df8a9129e51bbf09470f02f3 (diff)
Show error message to suspended user (#3281)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb2
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