diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-11-03 16:37:39 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-11-03 16:37:39 +0100 |
commit | d2846293d067cdf38d2816768e059d901a960a22 (patch) | |
tree | 5dbf0ad5a8444dad54290d0a6d463234315d7866 /app/helpers/visibility_level_helper.rb | |
parent | 77ef4855e0b69fa9e7f5501b64d08d3fc0fe1205 (diff) | |
download | gitlab-ce-d2846293d067cdf38d2816768e059d901a960a22.tar.gz |
Move visibility_level check for forked projects to Project model
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r-- | app/helpers/visibility_level_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb index b52cd23aba2..bc594dc53c1 100644 --- a/app/helpers/visibility_level_helper.rb +++ b/app/helpers/visibility_level_helper.rb @@ -89,7 +89,6 @@ module VisibilityLevelHelper def skip_level?(form_model, level) form_model.is_a?(Project) && - form_model.forked? && - !Gitlab::VisibilityLevel.allowed_fork_levels(form_model.forked_from_project.visibility_level).include?(level) + !form_model.visibility_level_allowed?(level) end end |