We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7c80a0b commit 0f89417Copy full SHA for 0f89417
routers/api/v1/api.go
@@ -954,7 +954,7 @@ func Routes(sessioner func(http.Handler) http.Handler) *web.Route {
954
}, mustAllowPulls, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo(false))
955
m.Group("/statuses", func() {
956
m.Combo("/{sha}").Get(repo.GetCommitStatuses).
957
- Post(reqToken(), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
+ Post(reqToken(), reqRepoWriter(unit.TypeCode), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
958
}, reqRepoReader(unit.TypeCode))
959
m.Group("/commits", func() {
960
m.Get("", repo.GetAllCommits)
0 commit comments