diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-07-09 21:51:42 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2019-08-23 12:17:17 +0300 |
commit | 0ef5f554d1a63362b87f00e10fa517d63c28c6a4 (patch) | |
tree | 99a13c48756392f4008fef29471823769e9bbb2e /app/controllers/concerns/uploads_actions.rb | |
parent | 4a6d22ba439cb20937669c4aa2046acffb36a60e (diff) |
Add direct upload support for personal snippets
Diffstat (limited to 'app/controllers/concerns/uploads_actions.rb')
-rw-r--r-- | app/controllers/concerns/uploads_actions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/concerns/uploads_actions.rb b/app/controllers/concerns/uploads_actions.rb index f5d35379e10..60a68cec3c3 100644 --- a/app/controllers/concerns/uploads_actions.rb +++ b/app/controllers/concerns/uploads_actions.rb @@ -127,4 +127,8 @@ module UploadsActions def model strong_memoize(:model) { find_model } end + + def workhorse_authorize_request? + action_name == 'authorize' + end end |