Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-05-28 13:53:04 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-05-28 13:53:04 +0300
commit2db026793df81f97515a13e1b4355436f6cc76c3 (patch)
treedf8a166d207b9c9758e5c0f03ac79ea9a71b6775 /app/controllers/registrations_controller.rb
parent9cc23910a6817b663defb0943cd055836e98366f (diff)
Fix current user removal
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r--app/controllers/registrations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index 6e57fded337..6ccc7934f2f 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -6,7 +6,7 @@ class RegistrationsController < Devise::RegistrationsController
end
def destroy
- DeleteUserService.new.execute(user)
+ DeleteUserService.new.execute(current_user)
respond_to do |format|
format.html { redirect_to new_user_session_path, notice: "Account successfully removed." }