diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2012-11-06 14:30:48 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2013-01-18 11:57:31 +0100 |
commit | 296cdd591f7f01ffdbe18cd6a839bbd0e624dfba (patch) | |
tree | fd910106cf092da00a7fbddfe4d6e19b1f9a00eb /app/controllers/registrations_controller.rb | |
parent | b07e1b3aedf87fdf3ec7a6855cec8194b0a30a59 (diff) | |
download | gitlab-ce-296cdd591f7f01ffdbe18cd6a839bbd0e624dfba.tar.gz |
Add optional signup.
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r-- | app/controllers/registrations_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb new file mode 100644 index 00000000000..cbac7613e59 --- /dev/null +++ b/app/controllers/registrations_controller.rb @@ -0,0 +1,9 @@ +class RegistrationsController < Devise::RegistrationsController + before_filter :signup_enabled? + + private + + def signup_enabled? + redirect_to new_user_session_path unless Gitlab.config.gitlab.signup_enabled + end +end
\ No newline at end of file |