Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2019-04-10 12:10:37 +0300
committerDouwe Maan <douwe@gitlab.com>2019-04-10 12:10:37 +0300
commite861af409df4139e2a1c7434b1ca490710c786f1 (patch)
tree92f162543110645ec929c5e5a1ebf245a900d13b /lib/gitlab/legacy_github_import
parent8036416dce7a4760bd203a291de67076385a3a2e (diff)
parent15e2b5ad0b2bdd0ccc0e5ebd47b78c0cd064dbea (diff)
Merge branch '47327-fix-github-project-import-visibility' into 'master'
Fix GitHub project import visibility See merge request gitlab-org/gitlab-ce!27133
Diffstat (limited to 'lib/gitlab/legacy_github_import')
-rw-r--r--lib/gitlab/legacy_github_import/project_creator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/legacy_github_import/project_creator.rb b/lib/gitlab/legacy_github_import/project_creator.rb
index ca1a1b8e9bd..b484b69c932 100644
--- a/lib/gitlab/legacy_github_import/project_creator.rb
+++ b/lib/gitlab/legacy_github_import/project_creator.rb
@@ -37,7 +37,7 @@ module Gitlab
end
def visibility_level
- visibility_level = repo.private ? Gitlab::VisibilityLevel::PRIVATE : Gitlab::VisibilityLevel::PUBLIC
+ visibility_level = repo.private ? Gitlab::VisibilityLevel::PRIVATE : @namespace.visibility_level
visibility_level = Gitlab::CurrentSettings.default_project_visibility if Gitlab::CurrentSettings.restricted_visibility_levels.include?(visibility_level)
visibility_level