summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-24 17:24:29 -0500
committerMike Greiling <mike@pixelcog.com>2017-08-26 03:30:01 -0500
commit852f50977111fc11511682217e81cdce908c318f (patch)
tree4827b13baa3722d9b8d9fa49f45a96fed4a214c1 /app
parent37edce19dd2f006ef2117ca8a9f05398e704a11c (diff)
downloadgitlab-ce-852f50977111fc11511682217e81cdce908c318f.tar.gz
rename skip_level? to disallowed_visibitility_level?
Diffstat (limited to 'app')
-rw-r--r--app/helpers/visibility_level_helper.rb2
-rw-r--r--app/views/shared/_visibility_radios.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb
index ecc554f85d0..c8401b784f6 100644
--- a/app/helpers/visibility_level_helper.rb
+++ b/app/helpers/visibility_level_helper.rb
@@ -95,7 +95,7 @@ module VisibilityLevelHelper
:default_group_visibility,
to: :current_application_settings
- def skip_level?(form_model, level)
+ def disallowed_visibility_level?(form_model, level)
return false unless form_model.respond_to?(:visibility_level_allowed?)
!form_model.visibility_level_allowed?(level)
end
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml
index 182c4eebd50..7b9453943d1 100644
--- a/app/views/shared/_visibility_radios.html.haml
+++ b/app/views/shared/_visibility_radios.html.haml
@@ -1,5 +1,5 @@
- Gitlab::VisibilityLevel.values.each do |level|
- - next if skip_level?(form_model, level)
+ - next if disallowed_visibility_level?(form_model, level)
.radio
- restricted = restricted_visibility_levels.include?(level)
= form.label "#{model_method}_#{level}" do