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
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-02-02 22:12:55 +0300
committerDouwe Maan <douwe@gitlab.com>2018-02-02 22:12:55 +0300
commitcd5d75c362cdf06efb8174eddfbd0f4b65687dec (patch)
treebff86f0ffdaa6f2dba310a178da04a0433688506 /lib
parentb89fd7dd5b7e035e2576c0b18ee2670bf57433c2 (diff)
parent948150f050d14811f6fe1b327387e3c2c1b1fe31 (diff)
Merge branch 'bvl-fix-500-on-fork-without-restricted-visibility-levels' into 'master'
Avoid error when creating forks and restricted levels are defined Closes #42607 See merge request gitlab-org/gitlab-ce!16881
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/visibility_level.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/visibility_level.rb b/lib/gitlab/visibility_level.rb
index a682de96b3b..2612208a927 100644
--- a/lib/gitlab/visibility_level.rb
+++ b/lib/gitlab/visibility_level.rb
@@ -59,7 +59,7 @@ module Gitlab
def allowed_levels
restricted_levels = Gitlab::CurrentSettings.restricted_visibility_levels
- self.values - restricted_levels
+ self.values - Array(restricted_levels)
end
def closest_allowed_level(target_level)