Skip to content

Commit 667aecc

Browse files
committed
fix: default
1 parent 80dcf33 commit 667aecc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/web/shared/actions/runners.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ func findRunner(ctx *context.Context, rCtx *runnersCtx) (*actions_model.ActionRu
339339
opts.OwnerID = rCtx.OwnerID
340340
case rCtx.IsAdmin:
341341
// do nothing
342+
default:
343+
ctx.ServerError("findRunner", errors.New("unable to determine"))
344+
return nil, false
342345
}
343346

344347
var runner *actions_model.ActionRunner

0 commit comments

Comments
 (0)