Skip to content

Fix audit flow when audit_log feature is disabled

Vasilii Iakliushin requested to merge fix_audit_event_flow into master

What does this MR do and why?

Problem

Auditor.audit method supports a block argument. The provided block should be executed no matter if audit_events feature is enabled or not.

However, because of the early return return unless auditor.audit_enabled? in Auditor.audit method. The block execution is skipped.

Solution

Execute block even if the licensed feature is disabled.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Vasilii Iakliushin

Merge request reports