fix: 用户不能重置自己的 mfa

This commit is contained in:
xinwen
2021-09-14 20:38:52 +08:00
committed by Jiangjie.Bai
parent 88ddd86154
commit a56799ca22

View File

@@ -58,7 +58,7 @@ export default {
title: this.$t('users.quickUpdate.resetMFA'), title: this.$t('users.quickUpdate.resetMFA'),
attrs: { attrs: {
type: 'primary', type: 'primary',
disabled: !this.object.mfa_enabled, disabled: !this.object.mfa_enabled || this.object.id === this.$store.state.users.profile.id,
label: this.$t('common.Reset') label: this.$t('common.Reset')
}, },
callbacks: { callbacks: {