summaryrefslogtreecommitdiff
path: root/app/services/create_snippet_service.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-29 17:26:59 +0200
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-29 17:26:59 +0200
commit3339513ca67c50a231b8906a33eccc0d209270a5 (patch)
treee9dbe77b814abd59062ba5dcdd3f454011d758cc /app/services/create_snippet_service.rb
parent15a6633999c81387245cabf129dd2fbb04650c95 (diff)
parent54957d6932c2b159e01b60ee1d4e191cfdf5b713 (diff)
downloadgitlab-ce-3339513ca67c50a231b8906a33eccc0d209270a5.tar.gz
Merge branch 'master' into assign-to-issuable-opener
Diffstat (limited to 'app/services/create_snippet_service.rb')
-rw-r--r--app/services/create_snippet_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/create_snippet_service.rb b/app/services/create_snippet_service.rb
index 101a3df5eee..9884cb96661 100644
--- a/app/services/create_snippet_service.rb
+++ b/app/services/create_snippet_service.rb
@@ -6,8 +6,7 @@ class CreateSnippetService < BaseService
snippet = project.snippets.build(params)
end
- unless Gitlab::VisibilityLevel.allowed_for?(current_user,
- params[:visibility_level])
+ unless Gitlab::VisibilityLevel.allowed_for?(current_user, params[:visibility_level])
deny_visibility_level(snippet)
return snippet
end