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 e24c238 commit 3aec32aCopy full SHA for 3aec32a
routers/api/v1/api.go
@@ -1017,7 +1017,7 @@ func Routes() *web.Route {
1017
}, mustAllowPulls, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo())
1018
m.Group("/statuses", func() {
1019
m.Combo("/{sha}").Get(repo.GetCommitStatuses).
1020
- Post(reqToken(), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
+ Post(reqToken(), reqRepoWriter(unit.TypeCode), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
1021
}, reqRepoReader(unit.TypeCode))
1022
m.Group("/commits", func() {
1023
m.Get("", context.ReferencesGitRepo(), repo.GetAllCommits)
0 commit comments