Skip to content

Commit f49e20d

Browse files
committed
Lets start with token
1 parent d9e9f88 commit f49e20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,8 @@ func Routes() *web.Router {
14331433
}, mustAllowPulls, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo())
14341434
m.Group("/statuses", func() {
14351435
m.Combo("/{sha}").Get(repo.GetCommitStatuses).
1436-
Post(reqToken(), reqRepoCommitStatusWriter(unit.TypeCode), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
1437-
}, reqRepoCommitStatusReader(unit.TypeCode))
1436+
Post(reqToken(), tokenRequiresScopes(auth_model.AccessTokenScopeCategoryCommitStatus), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
1437+
})
14381438
m.Group("/commits", func() {
14391439
m.Get("", context.ReferencesGitRepo(), repo.GetAllCommits)
14401440
m.Group("/{ref}", func() {

0 commit comments

Comments
 (0)