summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-10-12 00:39:03 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-12-13 18:53:14 -0700
commitde3e9eed5ee38ff82931153c4bd59d4ba571663d (patch)
tree785d6b7aeed4e2ba5a97ef13bda2cf51e3473a48
parent8f7553d3f8296004b520f093d195d77729566789 (diff)
downloadgitlab-ce-de3e9eed5ee38ff82931153c4bd59d4ba571663d.tar.gz
Of course fixing this just reveals another bug.
-rw-r--r--lib/api/project_hooks.rb2
1 files changed, 1 insertions, 1 deletions
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