summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 2eb5c63a4cc..916a0aa74f0 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -728,7 +728,8 @@ class User < ApplicationRecord
end
def expanded_groups_requiring_two_factor_authentication
- all_expanded_groups.where(require_two_factor_authentication: true)
+ Group.from_union([all_expanded_groups.where(require_two_factor_authentication: true),
+ authorized_groups.where(require_two_factor_authentication: true)])
end
# rubocop: disable CodeReuse/ServiceClass