Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-08-26 10:41:50 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-08-26 10:41:50 +0300
commit0ca9d12655399ee78cd58ac9523f77730d9af117 (patch)
treee102f4d400d33c4445f5011f14034a0e59c7f0da /config
parent01ca489511aafad63b6f557b56067937a8e41d3e (diff)
parentcb81da4df93790e7bf75c183edcf353bb501290e (diff)
Merge branch 'security-personal-snippets-12-2' into '12-2-stable'
Add direct upload support for personal snippets See merge request gitlab/gitlabhq!3359
Diffstat (limited to 'config')
-rw-r--r--config/routes/uploads.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb
index 920f8454ce2..096ef146e07 100644
--- a/config/routes/uploads.rb
+++ b/config/routes/uploads.rb
@@ -30,6 +30,10 @@ scope path: :uploads do
to: 'uploads#create',
constraints: { model: /personal_snippet|user/, id: /\d+/ },
as: 'upload'
+
+ post ':model/authorize',
+ to: 'uploads#authorize',
+ constraints: { model: /personal_snippet|user/ }
end
# Redirect old note attachments path to new uploads path.