summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <mail@zjvandeweg.nl>2015-12-07 12:06:20 +0100
committerZeger-Jan van de Weg <mail@zjvandeweg.nl>2015-12-07 12:06:20 +0100
commit3da32ef7d84f5800434379520878fe5c186b9e39 (patch)
tree3095a89ae3a75fca29f3be1b5d2a3d41824a81e1 /app/controllers/snippets_controller.rb
parent113325a9e02b06d9cef82b913e2ab6f33331371b (diff)
parent234f4bf20fb338f2164976fd39203fbc671afd29 (diff)
downloadgitlab-ce-3da32ef7d84f5800434379520878fe5c186b9e39.tar.gz
Merge branch 'master' into rake-tasks-git
Diffstat (limited to 'app/controllers/snippets_controller.rb')
-rw-r--r--app/controllers/snippets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb
index 08f2483af33..c72df73af46 100644
--- a/app/controllers/snippets_controller.rb
+++ b/app/controllers/snippets_controller.rb
@@ -2,7 +2,7 @@ class SnippetsController < ApplicationController
before_action :snippet, only: [:show, :edit, :destroy, :update, :raw]
# Allow read snippet
- before_action :authorize_read_snippet!, only: [:show]
+ before_action :authorize_read_snippet!, only: [:show, :raw]
# Allow modify snippet
before_action :authorize_update_snippet!, only: [:edit, :update]