mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 23:03:34 +01:00
Fix branch list auth (#26041)
The public repositories' branch list dropdown will return wrong because it requires login wrongly. Caused by #25719
This commit is contained in:
parent
a7e8273574
commit
c42b71877e
1 changed files with 1 additions and 1 deletions
|
@ -1091,7 +1091,6 @@ func registerRoutes(m *web.Route) {
|
|||
}, context.RepoRef(), canEnableEditor, context.RepoMustNotBeArchived())
|
||||
|
||||
m.Group("/branches", func() {
|
||||
m.Get("/list", repo.GetBranchesList)
|
||||
m.Group("/_new", func() {
|
||||
m.Post("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.CreateBranch)
|
||||
m.Post("/tag/*", context.RepoRefByType(context.RepoRefTag), repo.CreateBranch)
|
||||
|
@ -1248,6 +1247,7 @@ func registerRoutes(m *web.Route) {
|
|||
}, repo.MustBeNotEmpty, dlSourceEnabled, reqRepoCodeReader)
|
||||
|
||||
m.Group("/branches", func() {
|
||||
m.Get("/list", repo.GetBranchesList)
|
||||
m.Get("", repo.Branches)
|
||||
}, repo.MustBeNotEmpty, context.RepoRef(), reqRepoCodeReader)
|
||||
|
||||
|
|
Loading…
Reference in a new issue