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>2013-09-04 17:20:40 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-04 17:20:40 +0400
commit8e238f42732e5968dc46e3f08d853d0f3c9b2760 (patch)
treeca6e167519d60529ce9709592ca07ef4ea895645 /app/controllers/registrations_controller.rb
parent7b8bd93e673a6ace673cab00e0cc10489d64437d (diff)
Fix user remove tests. Remove user even if he has projects
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r--app/controllers/registrations_controller.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index 194dfcd4122..5f18bac82ed 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -2,9 +2,6 @@ class RegistrationsController < Devise::RegistrationsController
before_filter :signup_enabled?
def destroy
- if current_user.owned_projects.count > 0
- redirect_to account_profile_path, alert: "Remove projects and groups before removing account." and return
- end
current_user.destroy
respond_to do |format|