mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-14 15:16:04 +10:00
API: Protect project deploy keys from unauthorized access
This commit is contained in:
@@ -2,6 +2,7 @@ module API
|
||||
# Projects API
|
||||
class DeployKeys < Grape::API
|
||||
before { authenticate! }
|
||||
before { authorize_admin_project }
|
||||
|
||||
resource :projects do
|
||||
helpers do
|
||||
|
||||
Reference in New Issue
Block a user