Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a93572

Browse files
committed
fix: Remove audit warning if unlicensed
Fixes#4383.
1 parent1386465 commit8a93572

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎enterprise/coderd/coderd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ func (api *API) serveEntitlements(rw http.ResponseWriter, r *http.Request) {
267267
Entitlement:entitlements.auditLogs,
268268
Enabled:api.AuditLogging,
269269
}
270-
ifapi.AuditLogging {
270+
// Audit logging is enabled by default. We don't want to display
271+
// a warning if they don't have a license.
272+
ifentitlements.hasLicense&&api.AuditLogging {
271273
ifentitlements.auditLogs==codersdk.EntitlementNotEntitled {
272274
resp.Warnings=append(resp.Warnings,
273275
"Audit logging is enabled but your license is not entitled to this feature.")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp