We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ef658 commit 2055fa3Copy full SHA for 2055fa3
routers/api/v1/api.go
@@ -1010,7 +1010,7 @@ func Routes() *web.Route {
1010
}, mustAllowPulls, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo())
1011
m.Group("/statuses", func() {
1012
m.Combo("/{sha}").Get(repo.GetCommitStatuses).
1013
- Post(reqToken(), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
+ Post(reqToken(), reqRepoWriter(unit.TypeCode), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
1014
}, reqRepoReader(unit.TypeCode))
1015
m.Group("/commits", func() {
1016
m.Get("", context.ReferencesGitRepo(), repo.GetAllCommits)
0 commit comments