diff options
author | Roger Rüttimann <ror@panter.ch> | 2019-02-06 16:35:23 +0100 |
---|---|---|
committer | Roger Meier <r.meier@siemens.com> | 2019-06-13 08:43:14 +0200 |
commit | 54a918d92aa606d9e8977a30b4f08756c1d39dd2 (patch) | |
tree | db706d300f4c70100c50d20548d2e9c4b9987675 | |
parent | 34a03d90c3a0a8ebda2143fcdca5d37a9b71db6e (diff) | |
download | gitlab-ce-54a918d92aa606d9e8977a30b4f08756c1d39dd2.tar.gz |
first try: fix mysql problem (not all users found)
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |