Skip to content

Commit 6cd1219

Browse files
authored
chore: reword license backend error to only mention premium (coder#14799)
Phrasing for "enterprise" removed.
1 parent 575925c commit 6cd1219

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

enterprise/coderd/templates.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,9 @@ func (api *API) RequireFeatureMW(feat codersdk.FeatureName) func(http.Handler) h
354354
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
355355
// Entitlement must be enabled.
356356
if !api.Entitlements.Enabled(feat) {
357-
licenseType := "a Premium"
358-
if feat.Enterprise() {
359-
licenseType = "an Enterprise"
360-
}
357+
// All feature warnings should be "Premium", not "Enterprise".
361358
httpapi.Write(r.Context(), rw, http.StatusForbidden, codersdk.Response{
362-
Message: fmt.Sprintf("%s is %s feature. Contact sales!", feat.Humanize(), licenseType),
359+
Message: fmt.Sprintf("%s is a Premium feature. Contact sales!", feat.Humanize()),
363360
})
364361
return
365362
}

0 commit comments

Comments
 (0)