diff options
author | Roger Rüttimann <ror@panter.ch> | 2019-02-06 15:08:39 +0100 |
---|---|---|
committer | Roger Meier <r.meier@siemens.com> | 2019-06-13 08:43:14 +0200 |
commit | 34a03d90c3a0a8ebda2143fcdca5d37a9b71db6e (patch) | |
tree | 03a26d417dd43edd2c062e15a43c41da288cc11c /app/models/group.rb | |
parent | 2a1c2c673f25aa1329e045bd907babbea037a9f1 (diff) | |
download | gitlab-ce-34a03d90c3a0a8ebda2143fcdca5d37a9b71db6e.tar.gz |
require update_two_factor_requirement on all sub-entities users
Diffstat (limited to 'app/models/group.rb')
-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 cdb4e6e87f6..5e58b48a366 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? - users.find_each(&:update_two_factor_requirement) + User.from_union([users_with_descendants, project_users_with_descendants]).find_each(&:update_two_factor_requirement) end def path_changed_hook |