Commit dfe5ffd4 authored by Roger Rüttimann's avatar Roger Rüttimann Committed by Roger Meier

second try: fix mysql problem (not all users found)

parent 54a918d9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment