summaryrefslogtreecommitdiff
path: root/app/helpers/visibility_level_helper.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-02-01 16:38:52 +0000
committerSean McGivern <sean@gitlab.com>2017-02-02 10:23:50 +0000
commitf799585c41d801bc657f992adf3d4b201af927d2 (patch)
tree024671600d97ba514bd06f896b4f508f4e790ace /app/helpers/visibility_level_helper.rb
parent659cceb0e8694b58a8b665de3f338245244ef114 (diff)
downloadgitlab-ce-f799585c41d801bc657f992adf3d4b201af927d2.tar.gz
Keep snippet visibility on error
When a snippet is submitted, but there's an error, we didn't keep the visibility level. As the default is private, this means that submitting a public snippet that failed would then fall back to being a private snippet.
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r--app/helpers/visibility_level_helper.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb
index 3a83ae15dd8..fc93acfe63e 100644
--- a/app/helpers/visibility_level_helper.rb
+++ b/app/helpers/visibility_level_helper.rb
@@ -93,10 +93,6 @@ module VisibilityLevelHelper
current_application_settings.default_project_visibility
end
- def default_snippet_visibility
- current_application_settings.default_snippet_visibility
- end
-
def default_group_visibility
current_application_settings.default_group_visibility
end