diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
commit | 48aff82709769b098321c738f3444b9bdaa694c6 (patch) | |
tree | e00c7c43e2d9b603a5a6af576b1685e400410dee /app/helpers/visibility_level_helper.rb | |
parent | 879f5329ee916a948223f8f43d77fba4da6cd028 (diff) |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r-- | app/helpers/visibility_level_helper.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb index 304b58d232a..a7b9e17c898 100644 --- a/app/helpers/visibility_level_helper.rb +++ b/app/helpers/visibility_level_helper.rb @@ -23,8 +23,6 @@ module VisibilityLevelHelper project_visibility_level_description(level) when Group group_visibility_level_description(level) - when Snippet - snippet_visibility_level_description(level, form_model) end end @@ -50,21 +48,6 @@ module VisibilityLevelHelper end end - def snippet_visibility_level_description(level, snippet = nil) - case level - when Gitlab::VisibilityLevel::PRIVATE - if snippet.is_a? ProjectSnippet - _("The snippet is visible only to project members.") - else - _("The snippet is visible only to me.") - end - when Gitlab::VisibilityLevel::INTERNAL - _("The snippet is visible to any logged in user.") - when Gitlab::VisibilityLevel::PUBLIC - _("The snippet can be accessed without any authentication.") - end - end - # Note: these messages closely mirror the form validation strings found in the project # model and any changes or additons to these may also need to be made there. def disallowed_project_visibility_level_description(level, project) |