fix: CanRerun

This commit is contained in:
Jason Song 2022-12-29 14:48:45 +08:00
parent 6bbce09e7d
commit 8717c428ea
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -120,7 +120,7 @@ func ViewPost(ctx *context_module.Context) {
ID: v.ID,
Name: v.Name,
Status: v.Status.String(),
CanRerun: run.Status.IsDone() && ctx.Repo.CanWrite(unit.TypeActions),
CanRerun: v.Status.IsDone() && ctx.Repo.CanWrite(unit.TypeActions),
}
}