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 bb65a90 commit f02a372Copy full SHA for f02a372
services/context/api.go
@@ -367,15 +367,3 @@ func (ctx *APIContext) IsUserRepoAdmin() bool {
367
func (ctx *APIContext) IsUserRepoWriter(unitTypes []unit.Type) bool {
368
return slices.ContainsFunc(unitTypes, ctx.Repo.CanWrite)
369
}
370
-
371
-// IsUserRepoWriter returns true if current user has write commit status privilege in current repo
372
-func (ctx *APIContext) IsUserCommitStatusWriter(unitTypes []unit.Type) bool {
373
- for _, unitType := range unitTypes {
374
- // TODO
375
- if ctx.Repo.CanWrite(unitType) {
376
- return true
377
- }
378
379
380
- return false
381
-}
0 commit comments