From 1843bc035499ddcbcf939de5b35c59c88345527b Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Sun, 18 Nov 2018 12:31:42 -0700 Subject: [PATCH] Avoid 'core' terminology in team context The teams site does not have core exercises. This will only show the 'core' messaging for auto-approvable exercises on the main site. --- cmd/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/submit.go b/cmd/submit.go index 2c4a69450..f7152ef25 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -252,7 +252,7 @@ func runSubmit(cfg config.Config, flags *pflag.FlagSet, args []string) error { %s ` suffix := "View it at:\n\n " - if metadata.AutoApprove { + if metadata.AutoApprove && metadata.Team == "" { suffix = "You can complete the exercise and unlock the next core exercise at:\n" } fmt.Fprintf(Err, msg, suffix)