gitlabhq/spec
Sebastian Ziebell e9d3b96595 API: fixes visibility of project hook
When a user is not authorized to see the list of hooks for a project, he is
still able to access the hooks separately. For example if access to
`GET /projects/:id/hooks` fails and returns a `403 Unauthorized` error it is
still possible to access a hook directly via `GET /projects/:id/hooks/:hook_id`.

Fixes access, also added tests to check access and status codes of hooks.
2013-02-16 14:42:49 +01:00
..
contexts Improve CreateContext call. Fixed test 2013-01-18 20:21:13 +02:00
controllers remove unused autogenerated files 2013-01-24 22:31:48 +02:00
factories add path and path_with_namespace to api project entity 2013-01-31 09:11:35 +02:00
helpers remove unused autogenerated files 2013-01-24 22:31:48 +02:00
lib fixing tests after refactoring 2013-02-11 20:28:27 +02:00
mailers Fix mailer tests 2013-02-01 15:37:21 +02:00
models Constants in Events looks good now 2013-02-13 15:48:16 +04:00
observers Constants in Events looks good now 2013-02-13 15:48:16 +04:00
requests API: fixes visibility of project hook 2013-02-16 14:42:49 +01:00
routing Test to show incorrect routing to Compare controller 2013-02-12 19:28:37 +11:00
support Fixed: post-receive, project remove, tests 2013-02-05 12:47:50 +02:00
tasks/gitlab Fix routing issues when navigating over tree, commits etc 2012-12-25 06:14:05 +03:00
workers fixing tests after refactoring 2013-02-11 20:28:27 +02:00
factories.rb Constants in Events looks good now 2013-02-13 15:48:16 +04:00
factories_spec.rb Factories spec refactoring after #1616 2012-10-03 13:33:31 +03:00
seed_project.tar.gz Rspec test repo replaced.\nMerge Requests improved 2012-03-13 23:54:49 +02:00
spec_helper.rb No gitolite in project any more 2013-02-11 19:16:59 +02:00