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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-30 17:47:26 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-30 17:47:26 +0400
commit73f780d640e442c9b2d9eb4fc7297f91c6cc76ee (patch)
treed3c16939ed7df308ee13df5d24a8ec0dd62f7df8 /lib/api/deploy_keys.rb
parent6c8444f22e43de2f0166a6d7f98c7d9404d90ba2 (diff)
API: Protect project deploy keys from unauthorized access
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r--lib/api/deploy_keys.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb
index 55c947eb176..218b3d8eee2 100644
--- a/lib/api/deploy_keys.rb
+++ b/lib/api/deploy_keys.rb
@@ -2,6 +2,7 @@ module API
# Projects API
class DeployKeys < Grape::API
before { authenticate! }
+ before { authorize_admin_project }
resource :projects do
helpers do