gitlabhq/app/controllers/registrations_controller.rb

9 lines
221 B
Ruby
Raw Normal View History

2012-11-06 14:30:48 +01:00
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