From 72f805e13549de66a35f60ea10c342b7fcfe7d45 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Fri, 2 Jun 2017 22:40:39 +1200 Subject: [PATCH] Doesn't need check the :deleted field in registraions --- app/controllers/registrations_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 552f12870..72e92b9fd 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -48,6 +48,5 @@ end # check if we need the current password to update fields def needs_password?(member, params) params[:member][:password].present? || - params[:member][:password_confirmation].present? || - params[:member][:deleted].present? + params[:member][:password_confirmation].present? end