mirror of
https://github.com/gogs/gogs.git
synced 2026-01-25 00:29:17 +01:00
api: verify write access to update repo content (#8102)
This commit is contained in:
@@ -282,7 +282,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Get("", repo.GetContents)
|
||||
m.Combo("/*").
|
||||
Get(repo.GetContents).
|
||||
Put(bind(repo.PutContentsRequest{}), repo.PutContents)
|
||||
Put(reqRepoWriter(), bind(repo.PutContentsRequest{}), repo.PutContents)
|
||||
})
|
||||
m.Get("/archive/*", repo.GetArchive)
|
||||
m.Group("/git", func() {
|
||||
|
||||
Reference in New Issue
Block a user