Fix Style/SoleNestedConditional and Style/IfInsideElse cops, regenerate haml todo (#28384)
This commit is contained in:
parent
8e9e7d57d8
commit
2bd8d343cf
3 changed files with 16 additions and 28 deletions
|
|
@ -47,8 +47,8 @@
|
|||
- else
|
||||
= t 'admin.accounts.security_measures.only_password'
|
||||
%td
|
||||
- if account.user&.two_factor_enabled?
|
||||
= table_link_to 'unlock', t('admin.accounts.disable_two_factor_authentication'), admin_user_two_factor_authentication_path(account.user.id), method: :delete if can?(:disable_2fa, account.user)
|
||||
- if account.user&.two_factor_enabled? && can?(:disable_2fa, account.user)
|
||||
= table_link_to 'unlock', t('admin.accounts.disable_two_factor_authentication'), admin_user_two_factor_authentication_path(account.user.id), method: :delete
|
||||
- if can?(:reset_password, account.user)
|
||||
%tr
|
||||
%td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue