API: Protect project deploy keys from unauthorized access
This commit is contained in:
parent
6c8444f22e
commit
73f780d640
|
@ -2,6 +2,7 @@ module API
|
|||
# Projects API
|
||||
class DeployKeys < Grape::API
|
||||
before { authenticate! }
|
||||
before { authorize_admin_project }
|
||||
|
||||
resource :projects do
|
||||
helpers do
|
||||
|
|
Loading…
Reference in New Issue