Show error message to suspended user (#3281)

master
Yamagishi Kazutoshi 8 years ago committed by Eugen Rochko
parent bbc3db8b20
commit 676ba50601
  1. 2
      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

Loading…
Cancel
Save