Commit 73f780d6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

API: Protect project deploy keys from unauthorized access

parent 6c8444f2
...@@ -2,6 +2,7 @@ module API ...@@ -2,6 +2,7 @@ module API
# Projects API # Projects API
class DeployKeys < Grape::API class DeployKeys < Grape::API
before { authenticate! } before { authenticate! }
before { authorize_admin_project }
resource :projects do resource :projects do
helpers do helpers do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment