瀏覽代碼

Show error message to suspended user (#3281)

master
Yamagishi Kazutoshi 7 年之前
committed by Eugen Rochko
父節點
當前提交
676ba50601
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/controllers/application_controller.rb

+ 1
- 1
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…
取消
儲存