diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-19 20:58:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 20:58:19 +0200 |
commit | 3ed94dcc1acf73f1d0d1ab43567b88ee953f57c9 (patch) | |
tree | 3bec67e9d52943779f1b4070556ccab8d64bf6a4 /app/controllers/concerns | |
parent | b6df9c10671cd7bf48de3dbd7a94a92fb0a148ec (diff) |
Add account migration UI (#11846)
Fix #10736 - Change data export to be available for non-functional accounts - Change non-functional accounts to include redirecting accounts
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/export_controller_concern.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/concerns/export_controller_concern.rb b/app/controllers/concerns/export_controller_concern.rb index e20b71a30..bfe990c82 100644 --- a/app/controllers/concerns/export_controller_concern.rb +++ b/app/controllers/concerns/export_controller_concern.rb @@ -5,7 +5,10 @@ module ExportControllerConcern included do before_action :authenticate_user! + before_action :require_not_suspended! before_action :load_export + + skip_before_action :require_functional! end private @@ -27,4 +30,8 @@ module ExportControllerConcern def export_filename "#{controller_name}.csv" end + + def require_not_suspended! + forbidden if current_account.suspended? + end end |