提交 73f780d6 编写于 作者: D Dmitriy Zaporozhets

API: Protect project deploy keys from unauthorized access

上级 6c8444f2
......@@ -2,6 +2,7 @@ module API
# Projects API
class DeployKeys < Grape::API
before { authenticate! }
before { authorize_admin_project }
resource :projects do
helpers do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册