Skip to content

Commit

Permalink
Make handleGetDbAuditConfig only work in persistent config mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks committed Jul 9, 2024
1 parent e43a905 commit a1ff675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rest/admin_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ func (h *handler) handleGetDbAuditConfig() error {
enabledEvents[base.AuditID(event)] = struct{}{}
}
}
} else {
return base.HTTPErrorf(http.StatusServiceUnavailable, "audit config not available in non-persistent mode")
}

events := make(map[string]any, len(base.AuditEvents))
Expand Down

0 comments on commit a1ff675

Please sign in to comment.