Commit 73f780d640e442c9b2d9eb4fc7297f91c6cc76ee

Authored by Dmitriy Zaporozhets
1 parent 6c8444f2

API: Protect project deploy keys from unauthorized access

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/api/deploy_keys.rb
... ... @@ -2,6 +2,7 @@ module API
2 2 # Projects API
3 3 class DeployKeys < Grape::API
4 4 before { authenticate! }
  5 + before { authorize_admin_project }
5 6  
6 7 resource :projects do
7 8 helpers do
... ...