Просмотр исходного кода

Fix wrong variable regression from #11753 (#11763)

master^2
Eugen Rochko 4 лет назад
committed by GitHub
Родитель
Сommit
58755439ac
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      app/controllers/auth/confirmations_controller.rb

+ 1
- 1
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


Загрузка…
Отмена
Сохранить