summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Wyatt <daniel.wyatt@ribose.com>2019-04-08 10:12:39 -0400
committerDaniel Wyatt <daniel.wyatt@ribose.com>2019-04-08 11:39:57 -0400
commit26fdcf7b6103aa47943271a5f6358d9779d5a9b3 (patch)
treef31ef311540088f806818da38b0704e153425a25 /lib
parent34f68b3e35bbfa35cb831c16643eadb4dda70039 (diff)
downloadgitlab-ce-26fdcf7b6103aa47943271a5f6358d9779d5a9b3.tar.gz
Fix GitHub project import visibility
Diffstat (limited to 'lib')
-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