Skip to content

fix: label premium features in middleware error #14360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 19, 2024
Merged
Prev Previous commit
Next Next commit
fixup! fix: Report multiple organizations as a premium feature
  • Loading branch information
code-asher committed Aug 19, 2024
commit 1685f4e137d8a7b07f16cafdd292fa0ed1b4b501
2 changes: 1 addition & 1 deletion enterprise/coderd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (api *API) RequireFeatureMW(feat codersdk.FeatureName) func(http.Handler) h
enabled := api.entitlements.Features[feat].Enabled
api.entitlementsMu.RUnlock()
if !enabled {
var licenseType = "an Enterprise"
licenseType := "an Enterprise"
if feat.Premium() {
licenseType = "a Premium"
}
Expand Down
Loading