Add ability to require 2FA for specific roles (including Everybody) (#37701)

This commit is contained in:
Claire
2026-02-11 15:34:09 +01:00
committed by GitHub
parent 3e1127d27b
commit dfe44bcaef
23 changed files with 184 additions and 15 deletions

View File

@@ -62,7 +62,7 @@ module Admin
def resource_params
params
.expect(user_role: [:name, :color, :highlighted, :position, permissions_as_keys: []])
.expect(user_role: [:name, :color, :highlighted, :position, :require_2fa, permissions_as_keys: []])
end
end
end