mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-03 22:52:28 +01:00
Permissions bug fix for webhooks
This commit is contained in:
parent
c22f9114c7
commit
35d9378e4e
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||||
m.Combo("/:id").Get(repo.GetHook).
|
m.Combo("/:id").Get(repo.GetHook).
|
||||||
Patch(bind(api.EditHookOption{}), repo.EditHook).
|
Patch(bind(api.EditHookOption{}), repo.EditHook).
|
||||||
Delete(repo.DeleteHook)
|
Delete(repo.DeleteHook)
|
||||||
})
|
}, reqRepoWriter())
|
||||||
m.Group("/collaborators", func() {
|
m.Group("/collaborators", func() {
|
||||||
m.Get("", repo.ListCollaborators)
|
m.Get("", repo.ListCollaborators)
|
||||||
m.Combo("/:collaborator").Get(repo.IsCollaborator).
|
m.Combo("/:collaborator").Get(repo.IsCollaborator).
|
||||||
|
|
Loading…
Reference in a new issue