mirror of https://github.com/go-gitea/gitea.git
parent
36a2d2f919
commit
87c64f655a
|
@ -655,7 +655,6 @@ func RegisterRoutes(m *web.Route) {
|
||||||
reqRepoReleaseWriter := context.RequireRepoWriter(unit.TypeReleases)
|
reqRepoReleaseWriter := context.RequireRepoWriter(unit.TypeReleases)
|
||||||
reqRepoReleaseReader := context.RequireRepoReader(unit.TypeReleases)
|
reqRepoReleaseReader := context.RequireRepoReader(unit.TypeReleases)
|
||||||
reqRepoWikiWriter := context.RequireRepoWriter(unit.TypeWiki)
|
reqRepoWikiWriter := context.RequireRepoWriter(unit.TypeWiki)
|
||||||
reqRepoIssueWriter := context.RequireRepoWriter(unit.TypeIssues)
|
|
||||||
reqRepoIssueReader := context.RequireRepoReader(unit.TypeIssues)
|
reqRepoIssueReader := context.RequireRepoReader(unit.TypeIssues)
|
||||||
reqRepoPullsReader := context.RequireRepoReader(unit.TypePullRequests)
|
reqRepoPullsReader := context.RequireRepoReader(unit.TypePullRequests)
|
||||||
reqRepoIssuesOrPullsWriter := context.RequireRepoWriterOr(unit.TypeIssues, unit.TypePullRequests)
|
reqRepoIssuesOrPullsWriter := context.RequireRepoWriterOr(unit.TypeIssues, unit.TypePullRequests)
|
||||||
|
@ -992,8 +991,8 @@ func RegisterRoutes(m *web.Route) {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
m.Post("/reactions/{action}", web.Bind(forms.ReactionForm{}), repo.ChangeIssueReaction)
|
m.Post("/reactions/{action}", web.Bind(forms.ReactionForm{}), repo.ChangeIssueReaction)
|
||||||
m.Post("/lock", reqRepoIssueWriter, web.Bind(forms.IssueLockForm{}), repo.LockIssue)
|
m.Post("/lock", reqRepoIssuesOrPullsWriter, web.Bind(forms.IssueLockForm{}), repo.LockIssue)
|
||||||
m.Post("/unlock", reqRepoIssueWriter, repo.UnlockIssue)
|
m.Post("/unlock", reqRepoIssuesOrPullsWriter, repo.UnlockIssue)
|
||||||
m.Post("/delete", reqRepoAdmin, repo.DeleteIssue)
|
m.Post("/delete", reqRepoAdmin, repo.DeleteIssue)
|
||||||
}, context.RepoMustNotBeArchived())
|
}, context.RepoMustNotBeArchived())
|
||||||
m.Group("/{index}", func() {
|
m.Group("/{index}", func() {
|
||||||
|
|
Loading…
Reference in New Issue