From 54a918d92aa606d9e8977a30b4f08756c1d39dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Ru=CC=88ttimann?= Date: Wed, 6 Feb 2019 16:35:23 +0100 Subject: first try: fix mysql problem (not all users found) --- app/models/group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/group.rb') diff --git a/app/models/group.rb b/app/models/group.rb index 5e58b48a366..dd8baddd789 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -423,7 +423,7 @@ class Group < Namespace def update_two_factor_requirement return unless saved_change_to_require_two_factor_authentication? || saved_change_to_two_factor_grace_period? - User.from_union([users_with_descendants, project_users_with_descendants]).find_each(&:update_two_factor_requirement) + [users_with_descendants, project_users_with_descendants].each {|set| set.find_each(&:update_two_factor_requirement)} end def path_changed_hook -- cgit v1.2.1