File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ func New(options *Options) *API {
466
466
})
467
467
r .Route ("/entitlements" , func (r chi.Router ) {
468
468
r .Use (apiKeyMiddleware )
469
- r .Get ("/" , entitlements )
469
+ r .Get ("/" , nopEntitlements )
470
470
})
471
471
r .HandleFunc ("/licenses" , unsupported )
472
472
})
@@ -523,7 +523,7 @@ func compressHandler(h http.Handler) http.Handler {
523
523
return cmp .Handler (h )
524
524
}
525
525
526
- func entitlements (rw http.ResponseWriter , _ * http.Request ) {
526
+ func nopEntitlements (rw http.ResponseWriter , _ * http.Request ) {
527
527
feats := make (map [string ]codersdk.Feature )
528
528
for _ , f := range codersdk .FeatureNames {
529
529
feats [f ] = codersdk.Feature {
Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ func (api *API) updateEntitlements(ctx context.Context) error {
152
152
}
153
153
if auditLogs != api .auditLogs {
154
154
auditor := agplaudit .NewNop ()
155
+ // A flag could be added to the options that would allow disabling
156
+ // enhanced audit logging here!
155
157
if api .auditLogs == codersdk .EntitlementEntitled {
156
158
auditor = audit .NewAuditor (
157
159
audit .DefaultFilter ,
You can’t perform that action at this time.
0 commit comments