Skip to content

Commit

Permalink
Fix wrong variable regression from #11753 (#11763)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Sep 5, 2019
1 parent 1653b58 commit 5875543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/auth/confirmations_controller.rb
Expand Up @@ -26,7 +26,7 @@ def set_body_classes

def after_resending_confirmation_instructions_path_for(_resource_name)
if user_signed_in?
if user.confirmed? && user.approved?
if current_user.confirmed? && current_user.approved?
edit_user_registration_path
else
auth_setup_path
Expand Down

0 comments on commit 5875543

Please sign in to comment.