diff options
author | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-20 15:43:32 +0400 |
---|---|---|
committer | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-20 15:43:32 +0400 |
commit | eefb27f5ae0edf0c005eb8ce6da56cbd17c9aa8a (patch) | |
tree | 9dc7d17953ee7851e1934903b45faf5f18d860a2 /lib/api/projects.rb | |
parent | 1b97a2eee8b89320de891e3ae8496adfa7f3a84b (diff) | |
parent | b7ac654b88aa9b03f431d93c25e397ff2bc66a7a (diff) |
Merge branch 'master' into fixes/api
Conflicts:
spec/requests/api/projects_spec.rb
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index cf3e8257a77..d171acc1ce1 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -184,6 +184,7 @@ module Gitlab # Example Request: # GET /projects/:id/hooks/:hook_id get ":id/hooks/:hook_id" do + authorize! :admin_project, user_project @hook = user_project.hooks.find(params[:hook_id]) present @hook, with: Entities::Hook end |