Commit 97d74c2adc71a9144840573d87a796dc46cc2511
1 parent
335f9d64
Exists in
master
and in
4 other branches
Add configurable default for projects_limit
Showing
4 changed files
with
8 additions
and
2 deletions
Show diff stats
app/controllers/admin/users_controller.rb
app/models/user.rb
... | ... | @@ -90,7 +90,8 @@ class User < ActiveRecord::Base |
90 | 90 | :name => name, |
91 | 91 | :email => email, |
92 | 92 | :password => password, |
93 | - :password_confirmation => password | |
93 | + :password_confirmation => password, | |
94 | + :projects_limit => GITLAB_OPTS["default_projects_limit"] | |
94 | 95 | ) |
95 | 96 | end |
96 | 97 | end | ... | ... |
config/gitlab.yml.example
config/initializers/00_before_all.rb
1 | 1 | GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"] |
2 | 2 | EMAIL_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["email"] |
3 | 3 | GIT_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git"] |
4 | +GITLAB_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["gitlab"] | ... | ... |