adds account section to management

for now it only has the option to delete account
This commit is contained in:
Juanjo Bazán
2016-04-08 11:43:26 +02:00
parent e4e87bf548
commit 83e58f0cc9
8 changed files with 80 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
class Management::AccountController < Management::BaseController
before_action :check_verified_user
def show
end
private
def check_verified_user
unless current_user.level_two_or_three_verified?
redirect_to management_document_verifications_path, alert: t("management.account.alert.unverified_user")
end
end
def current_user
managed_user
end
end