Skip to content

Commit 35d9378

Browse files
ethantkoenigbkcsoft
authored andcommitted
Permissions bug fix for webhooks
1 parent c22f911 commit 35d9378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func RegisterRoutes(m *macaron.Macaron) {
269269
m.Combo("/:id").Get(repo.GetHook).
270270
Patch(bind(api.EditHookOption{}), repo.EditHook).
271271
Delete(repo.DeleteHook)
272-
})
272+
}, reqRepoWriter())
273273
m.Group("/collaborators", func() {
274274
m.Get("", repo.ListCollaborators)
275275
m.Combo("/:collaborator").Get(repo.IsCollaborator).

0 commit comments

Comments
 (0)