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 18:35:23 +0300
committerRoger Meier <r.meier@siemens.com>2019-06-13 09:43:14 +0300
commit54a918d92aa606d9e8977a30b4f08756c1d39dd2 (patch)
treedb706d300f4c70100c50d20548d2e9c4b9987675 /app
parent34a03d90c3a0a8ebda2143fcdca5d37a9b71db6e (diff)
first try: fix mysql problem (not all users found)
Diffstat (limited to 'app')
-rw-r--r--app/models/group.rb2
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