File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
128
128
now := time .Now ()
129
129
130
130
// Default all entitlements to be disabled.
131
+ hasLicense := false
131
132
activeUsers := codersdk.Feature {
132
133
Enabled : false ,
133
134
Entitlement : codersdk .EntitlementNotEntitled ,
@@ -141,7 +142,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
141
142
slog .F ("id" , l .ID ), slog .Error (err ))
142
143
continue
143
144
}
144
- api . hasLicense = true
145
+ hasLicense = true
145
146
entitlement := codersdk .EntitlementEntitled
146
147
if now .After (claims .LicenseExpires .Time ) {
147
148
// if the grace period were over, the validation fails, so if we are after
@@ -177,6 +178,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
177
178
api .AGPL .Auditor .Store (auditor )
178
179
}
179
180
181
+ api .hasLicense = hasLicense
180
182
api .activeUsers = activeUsers
181
183
api .auditLogs = auditLogs
182
184
You can’t perform that action at this time.
0 commit comments