diff --git a/routers/web/repo/actions/view.go b/routers/web/repo/actions/view.go index 561d3174c5..de705bfe2c 100644 --- a/routers/web/repo/actions/view.go +++ b/routers/web/repo/actions/view.go @@ -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), } }