mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
committed by
Kim "BKC" Carlbäcker
parent
da89afda58
commit
93a1de4842
@@ -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: "",
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user