diff --git a/services/context/repo.go b/services/context/repo.go index fbe8178bd6..cabdd1d158 100644 --- a/services/context/repo.go +++ b/services/context/repo.go @@ -399,6 +399,8 @@ func repoAssignment(ctx *Context, repo *repo_model.Repository) { ctx.Data["Permission"] = &ctx.Repo.Permission if ctx.Doer != nil { ctx.Data["AllowCreateDevcontainer"] = ctx.Doer.AllowCreateDevcontainer + ctx.Data["AllowCreateActRunner"] = ctx.Doer.AllowCreateActRunner + } else { query := ctx.Req.URL.Query() userID := query.Get("user") @@ -416,6 +418,7 @@ func repoAssignment(ctx *Context, repo *repo_model.Repository) { return } ctx.Data["AllowCreateDevcontainer"] = u.AllowCreateDevcontainer + ctx.Data["AllowCreateActRunner"] = u.AllowCreateActRunner } if repo.IsMirror { diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index 9b2b90874c..2d0a504a16 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -9,9 +9,19 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}}