1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Permissions bug fix for webhooks

This commit is contained in:
Ethan Koenig 2016-12-27 13:13:21 -05:00 committed by Kim "BKC" Carlbäcker
parent c22f9114c7
commit 35d9378e4e

View file

@ -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).