Handle event streaming licence error when no entity

What does this MR do and why?

  • Fixes a bug blocking the rollout of audit event streaming.
  • When an entity is neither Project or Group, (A User, most likely), we check the licence for that group, which in this case is nil which causes the error defined in the issue.
  • This feature is still behind a default-off feature flag, so no changelog trailer here.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #346766 (closed)

Merge request reports

Loading