Skip to content

Commit b48d9d0

Browse files
committed
add unit.TypeReleases
1 parent 6004dee commit b48d9d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ func registerRoutes(m *web.Route) {
11261126
m.Get("/{username}/{reponame}", ignSignIn, context.RepoAssignment, context.RepoRef(), repo.SetEditorconfigIfExists, repo.Home)
11271127

11281128
// TODO: maybe it should relax the permission to allow "any access"
1129-
m.Post("/{username}/{reponame}/markup", ignSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypeCode, unit.TypeIssues, unit.TypePullRequests, unit.TypeWiki), web.Bind(structs.MarkupOption{}), misc.Markup)
1129+
m.Post("/{username}/{reponame}/markup", ignSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypeCode, unit.TypeIssues, unit.TypePullRequests, unit.TypeReleases, unit.TypeWiki), web.Bind(structs.MarkupOption{}), misc.Markup)
11301130

11311131
m.Group("/{username}/{reponame}", func() {
11321132
m.Get("/find/*", repo.FindFiles)

0 commit comments

Comments
 (0)