Skip to content

Fix SQL error when sorting 2FA-enabled users by name in admin area

Dmytro Zaporozhets (DZ) requested to merge dz-fix-sql-error-admin-users-2fa into master

What does this MR do?

Change User.with_two_factor to make it work without DISTINCT and avoid duplicates of JOIN

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/50491

Does this MR meet the acceptance criteria?

Merge request reports