From 792fd8df1e641e35b1a44443fea014fbe91273a1 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 25 Sep 2024 10:10:42 -0500 Subject: [PATCH] chore: reword license backend error to only mention premium Phrasing for "enterprise" removed. --- enterprise/coderd/templates.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/enterprise/coderd/templates.go b/enterprise/coderd/templates.go index d795e57c61a71..114f029c9d366 100644 --- a/enterprise/coderd/templates.go +++ b/enterprise/coderd/templates.go @@ -354,12 +354,9 @@ func (api *API) RequireFeatureMW(feat codersdk.FeatureName) func(http.Handler) h return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { // Entitlement must be enabled. if !api.Entitlements.Enabled(feat) { - licenseType := "a Premium" - if feat.Enterprise() { - licenseType = "an Enterprise" - } + // All feature warnings should be "Premium", not "Enterprise". httpapi.Write(r.Context(), rw, http.StatusForbidden, codersdk.Response{ - Message: fmt.Sprintf("%s is %s feature. Contact sales!", feat.Humanize(), licenseType), + Message: fmt.Sprintf("%s is a Premium feature. Contact sales!", feat.Humanize()), }) return }