Commit 7907bc819c8492c4bd04090bd267cea568393ea1
1 parent
d51618b9
Exists in
master
and in
4 other branches
Default values for project features added to create context
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
app/contexts/projects/create_context.rb
... | ... | @@ -33,8 +33,11 @@ module Projects |
33 | 33 | end |
34 | 34 | |
35 | 35 | # Disable less important features by default |
36 | - @project.wall_enabled = false | |
37 | - @project.snippets_enabled = false | |
36 | + @project.issues_enabled = Gitlab.config.gitlab.default_projects_features.issues | |
37 | + @project.wiki_enabled = Gitlab.config.gitlab.default_projects_features.wiki | |
38 | + @project.wall_enabled = Gitlab.config.gitlab.default_projects_features.wall | |
39 | + @project.snippets_enabled = Gitlab.config.gitlab.default_projects_features.snippets | |
40 | + @project.merge_requests_enabled = Gitlab.config.gitlab.default_projects_features.merge_requests | |
38 | 41 | |
39 | 42 | @project.creator = current_user |
40 | 43 | ... | ... |