diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 992713e28..b360c2f92 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -77,6 +77,7 @@ def authenticate_user! @current_user = User.new(credentials, type: type) fail CanCan::AuthorizationNotPerformed if @current_user.errors.present? + @current_user end def current_ability