diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index b7ee75619cb..507a5c206c6 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -12,9 +12,17 @@ class RegistrationsController < Devise::RegistrationsController end end + protected + + def build_resource(hash=nil) + super + self.resource.projects_limit = Gitlab.config.gitlab.default_projects_limit + self.resource + end + private def signup_enabled? redirect_to new_user_session_path unless Gitlab.config.gitlab.signup_enabled end -end \ No newline at end of file +end