Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRoger Rüttimann <ror@panter.ch>2019-02-06 19:29:55 +0300
committerRoger Meier <r.meier@siemens.com>2019-06-13 09:43:14 +0300
commitdfe5ffd4edd34adc9dbb941f22a8843ee4f12e6d (patch)
tree9772eacd3791f6427e032eeed856a24cc1a57aa1 /app
parent54a918d92aa606d9e8977a30b4f08756c1d39dd2 (diff)
second try: fix mysql problem (not all users found)
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 916a0aa74f0..f3deea75dbb 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -728,8 +728,8 @@ class User < ApplicationRecord
end
def expanded_groups_requiring_two_factor_authentication
- Group.from_union([all_expanded_groups.where(require_two_factor_authentication: true),
- authorized_groups.where(require_two_factor_authentication: true)])
+ all_expanded_groups.where(require_two_factor_authentication: true).merge(
+ authorized_groups.where(require_two_factor_authentication: true))
end
# rubocop: disable CodeReuse/ServiceClass