mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
perf: 用户在认证方式和用户来源一致时,无法解绑此类认证
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -1800,7 +1800,7 @@
|
||||
},
|
||||
"users": {
|
||||
"AllMembers": "すべてのメンバー",
|
||||
"UnbindHelpText": "このユーザーはローカルユーザーではありませんので、解除できません。管理者に連絡してください。",
|
||||
"UnbindHelpText": "ローカルユーザはソースユーザを認証します",
|
||||
"SetStatus": "ステータスの設定",
|
||||
"Set": "設定",
|
||||
"NotSet": "未設定",
|
||||
|
||||
@@ -1792,7 +1792,7 @@
|
||||
},
|
||||
"users": {
|
||||
"AllMembers": "全部成员",
|
||||
"UnbindHelpText": "此用户非本地用户,无法进行解绑,请联系管理员",
|
||||
"UnbindHelpText": "本地用户为此认证来源用户,无法解绑",
|
||||
"SetStatus": "设置状态",
|
||||
"Set": "已设置",
|
||||
"NotSet": "未设置",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user