diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-11-25 22:24:07 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-11-25 23:16:27 +0300 |
commit | 8dcef120cd94717b4f82db864191698826ca02a5 (patch) | |
tree | 3612277da47d44816edf48249abe9c6a2c995daa /app/controllers/snippets_controller.rb | |
parent | dee28c50a90acaf1a364d3971132c70c96493932 (diff) |
Fix raw private snippets access workflow
Diffstat (limited to 'app/controllers/snippets_controller.rb')
-rw-r--r-- | app/controllers/snippets_controller.rb | 2 |
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] |