Skip to content

Commit

Permalink
Fix wrong variable regression from mastodon#11753 (mastodon#11763)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent e6f59f2 commit da2f169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/auth/confirmations_controller.rb
Original file line number Diff line number Diff line change
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 da2f169

Please sign in to comment.