diff options
author | Daniel Wyatt <daniel.wyatt@ribose.com> | 2019-04-08 10:12:39 -0400 |
---|---|---|
committer | Daniel Wyatt <daniel.wyatt@ribose.com> | 2019-04-08 11:39:57 -0400 |
commit | 26fdcf7b6103aa47943271a5f6358d9779d5a9b3 (patch) | |
tree | f31ef311540088f806818da38b0704e153425a25 /lib | |
parent | 34f68b3e35bbfa35cb831c16643eadb4dda70039 (diff) | |
download | gitlab-ce-26fdcf7b6103aa47943271a5f6358d9779d5a9b3.tar.gz |
Fix GitHub project import visibility
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/legacy_github_import/project_creator.rb | 2 |
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 |