puts organizations out of verification process

This commit is contained in:
Juanjo Bazán
2015-09-12 18:05:51 +02:00
parent d9984c1ce4
commit d6c52ec866
3 changed files with 29 additions and 17 deletions

View File

@@ -11,7 +11,9 @@ class VerificationController < ApplicationController
private
def next_step_path(user = current_user)
if user.level_three_verified?
if user.organization?
{ path: account_path }
elsif user.level_three_verified?
{ path: account_path, notice: t('verification.redirect_notices.already_verified') }
elsif user.verification_letter_sent?
{ path: edit_letter_path }