diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-04 16:20:40 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-04 16:20:40 +0300 |
commit | 8e238f42732e5968dc46e3f08d853d0f3c9b2760 (patch) | |
tree | ca6e167519d60529ce9709592ca07ef4ea895645 /app/controllers/registrations_controller.rb | |
parent | 7b8bd93e673a6ace673cab00e0cc10489d64437d (diff) | |
download | gitlab-ce-8e238f42732e5968dc46e3f08d853d0f3c9b2760.tar.gz |
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.rb | 3 |
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| |