about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-05 06:13:50 +0200
committerGitHub <noreply@github.com>2019-09-05 06:13:50 +0200
commit58755439ac758f173cf6c8afb49d62b450782d14 (patch)
treea211a90d23659b6bbb6ed39aa36566a9e9f30ebe /app
parent1653b587778db0df201507115d19c0530096a5e3 (diff)
Fix wrong variable regression from #11753 (#11763)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth/confirmations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth/confirmations_controller.rb b/app/controllers/auth/confirmations_controller.rb
index 3e419eb96..898525269 100644
--- a/app/controllers/auth/confirmations_controller.rb
+++ b/app/controllers/auth/confirmations_controller.rb
@@ -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