summaryrefslogtreecommitdiffstats
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-07-04 13:06:47 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-07-04 13:06:47 +0000
commit1b0bf2880374307e9669cfd4ed32cfe6677a3503 (patch)
tree746c628e4cedc108473e340e2a19c5c0d323c225 /app/models/group.rb
parentaa20cd9ec210df7de884482be3e4d93936cd31ab (diff)
downloadredmine-1b0bf2880374307e9669cfd4ed32cfe6677a3503.tar.gz
redmine-1b0bf2880374307e9669cfd4ed32cfe6677a3503.zip
When 2FA is set to optional, allow to require 2FA only for certain user groups (#31920).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index a84f8650f..a1fd35602 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -41,6 +41,7 @@ class Group < Principal
safe_attributes(
'name',
+ 'twofa_required',
'user_ids',
'custom_field_values',
'custom_fields',