Include LDAP blocked users in user dropdowns

What does this MR do and why?

We already include blocked users but ldap_blocked is a different state that we also want to include.

This is a follow-up to !98582 (merged)

Related to https://gitlab.com/gitlab-com/sec-sub-department/section-sec-request-for-help/-/issues/361

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.

How to set up and validate locally

  1. Mark a project user as LDAP blocked: User.find_by_username('eric').ldap_block!
  2. Visit the project's MR list and attempt to filter by assignee
  3. The user should still show up in the dropdown
Edited by Heinrich Lee Yu

Merge request reports

Loading