diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2016-12-27 13:13:21 -0500 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-28 20:12:23 +0100 |
commit | 35d9378e4e1b3b1c15db3a7e7237a55fa96919a1 (patch) | |
tree | 8e0820dd601f643bc5d833d9aea367cb8857b276 | |
parent | c22f9114c7e0874e99fd1504131423517905c9c1 (diff) | |
download | gitea-35d9378e4e1b3b1c15db3a7e7237a55fa96919a1.tar.gz gitea-35d9378e4e1b3b1c15db3a7e7237a55fa96919a1.zip |
Permissions bug fix for webhooks
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 281180a18c..cfba8d7130 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -269,7 +269,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Combo("/:id").Get(repo.GetHook). Patch(bind(api.EditHookOption{}), repo.EditHook). Delete(repo.DeleteHook) - }) + }, reqRepoWriter()) m.Group("/collaborators", func() { m.Get("", repo.ListCollaborators) m.Combo("/:collaborator").Get(repo.IsCollaborator). |