summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
diff options
context:
space:
mode:
authorTed Hogan <ted.hogan17@gmail.com>2015-12-29 11:25:46 -0700
committerTed Hogan <ted.hogan17@gmail.com>2015-12-29 11:25:46 -0700
commit9fc6df512b53ff0e589bc6be7932da8ecfec4033 (patch)
tree6d356b79b323c2efb7c4d2c92aff2cdfd7c17358 /app/controllers/snippets_controller.rb
parent6e6a99061dbec4bb45a398a03e8a13a084e44035 (diff)
parenteeba266e3d45f2e82f84bd3aab85195c890efb89 (diff)
downloadgitlab-ce-9fc6df512b53ff0e589bc6be7932da8ecfec4033.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into wipMergeSpacing
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]