From de3e9eed5ee38ff82931153c4bd59d4ba571663d Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Wed, 12 Oct 2016 00:39:03 -0600 Subject: Of course fixing this just reveals another bug. --- lib/api/project_hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb index dcc0fb7a911..214d99ef5f6 100644 --- a/lib/api/project_hooks.rb +++ b/lib/api/project_hooks.rb @@ -3,7 +3,7 @@ module API include PaginationParams before { authenticate! } - before { authorize_admin_project } + after_validation { authorize_admin_project } helpers do params :project_hook_properties do -- cgit v1.2.1