summaryrefslogtreecommitdiff
path: root/app/controllers/snippets_controller.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-11-25 17:24:07 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-11-25 18:16:27 -0200
commit8dcef120cd94717b4f82db864191698826ca02a5 (patch)
tree3612277da47d44816edf48249abe9c6a2c995daa /app/controllers/snippets_controller.rb
parentdee28c50a90acaf1a364d3971132c70c96493932 (diff)
downloadgitlab-ce-8dcef120cd94717b4f82db864191698826ca02a5.tar.gz
Fix raw private snippets access workflow
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]