Use current user instead of [at]user

What does this MR do and why?

After enabling :vulnerability_report_owasp_2021 for my username on .com, I realised that the feature is still turned off:

image

The statement to push the feature flag is the following:

push_frontend_feature_flag(:vulnerability_report_owasp_2021, @user)

Apparently, we need to use current_user instead of @user.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

image

How to set up and validate locally

  1. Enable :vulnerability_report_owasp_2021 feature flag on a user level
  2. Visit /-/security/vulnerabilities (make sure to have some vulnerabilities)
  3. Check that the Group By option has OWASP 2021

Related to #477275 (closed)

Edited by Savas Vedova

Merge request reports

Loading