Skip to content
Snippets Groups Projects
Commit c00cd658 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Wes Gurney
Browse files

API: Protect project deploy keys from unauthorized access

parent f49e18c9
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
This commit is part of merge request !4954. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -2,6 +2,7 @@ module API
# Projects API
class DeployKeys < Grape::API
before { authenticate! }
before { authorize_admin_project }
 
resource :projects do
helpers do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment