perf: 用户在认证方式和用户来源一致时,无法解绑此类认证

This commit is contained in:
jiangweidong
2023-07-14 18:21:45 +08:00
parent 59f9025e42
commit 6e5e760689
4 changed files with 4 additions and 4 deletions

View File

@@ -1808,7 +1808,7 @@
},
"users": {
"AllMembers": "All members",
"UnbindHelpText": "The user is not a local user and cannot be unbound. Contact the administrator",
"UnbindHelpText": "Local users cannot be unbound because they are authenticated as source users",
"SetStatus": "Set status",
"Set": "Set",
"NotSet": "Not set",

View File

@@ -1800,7 +1800,7 @@
},
"users": {
"AllMembers": "すべてのメンバー",
"UnbindHelpText": "このユーザーはローカルユーザーではありませんので、解除できません。管理者に連絡してください。",
"UnbindHelpText": "ローカルユーザはソースユーザを認証します",
"SetStatus": "ステータスの設定",
"Set": "設定",
"NotSet": "未設定",

View File

@@ -1792,7 +1792,7 @@
},
"users": {
"AllMembers": "全部成员",
"UnbindHelpText": "此用户非本地用户,无法进行解绑,请联系管理员",
"UnbindHelpText": "本地用户为此认证来源用户,无法解绑",
"SetStatus": "设置状态",
"Set": "已设置",
"NotSet": "未设置",

View File

@@ -319,7 +319,7 @@ export default {
return this.$store.state.users.profile.source.value === sourceName
},
isDisabled(sourceName) {
return this.isBind(sourceName) && !this.isUserFromSource('local')
return this.isBind(sourceName) && this.isUserFromSource(sourceName)
},
updateUserReceiveBackends(val) {
this.$axios.patch(