Fix wrong variable regression from #11753 (#11763)

lolsob-rspec
Eugen Rochko 2019-09-05 06:13:50 +02:00 committed by GitHub
parent 5f6fd01ea6
commit 09fe562dd6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
def after_resending_confirmation_instructions_path_for(_resource_name) def after_resending_confirmation_instructions_path_for(_resource_name)
if user_signed_in? if user_signed_in?
if user.confirmed? && user.approved? if current_user.confirmed? && current_user.approved?
edit_user_registration_path edit_user_registration_path
else else
auth_setup_path auth_setup_path