summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 13:21:00 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 13:21:00 -0800
commit939c046a9872c1d7c38d73dc08860681ecebd1f1 (patch)
tree084daaaf574146379744ca61550752bceffa6578 /app
parentd0a50985ec613584821806062df4eaa39337449c (diff)
downloadgitlab-ce-939c046a9872c1d7c38d73dc08860681ecebd1f1.tar.gz
Fix feature and tests
Diffstat (limited to 'app')
-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 981dc2d8023..52db44bf822 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -26,7 +26,7 @@ class RegistrationsController < Devise::RegistrationsController
private
def signup_enabled?
- if current_application_settings.signup_enabled?
+ unless current_application_settings.signup_enabled?
redirect_to(new_user_session_path)
end
end