]> cat aescling's git repositories - mastodon.git/commitdiff
Fix wrong variable regression from #11753 (#11763)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Sep 2019 04:13:50 +0000 (06:13 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2019 04:13:50 +0000 (06:13 +0200)
app/controllers/auth/confirmations_controller.rb

index 3e419eb96f37130e259441471d8d58b39b103783..89852526998dbedcedbcee3ace41ef724f4eb7e5 100644 (file)
@@ -26,7 +26,7 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
 
   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