diff options
Diffstat (limited to 'routers/api/v1/repo/status.go')
-rw-r--r-- | routers/api/v1/repo/status.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go index d9b101df05..e4cc20a50b 100644 --- a/routers/api/v1/repo/status.go +++ b/routers/api/v1/repo/status.go @@ -103,15 +103,10 @@ func GetCombinedCommitStatus(ctx *context.APIContext) { return } - acl, err := models.AccessLevel(ctx.User.ID, repo) - if err != nil { - ctx.Error(500, "AccessLevel", fmt.Errorf("AccessLevel[%d, %s]: %v", ctx.User.ID, repo.FullName(), err)) - return - } retStatus := &combinedCommitStatus{ SHA: sha, TotalCount: len(statuses), - Repo: repo.APIFormat(acl), + Repo: repo.APIFormat(ctx.Repo.AccessMode), URL: "", } |