[UI] Allow change password for native users only. (#12584)

This commit is contained in:
Suresh Kumar Anaparti 2026-02-23 17:09:55 +05:30 committed by GitHub
parent d0543449a6
commit cf71938473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ export default {
label: 'label.action.change.password',
dataView: true,
popup: true,
show: (record, store) => {
return (['Admin', 'DomainAdmin'].includes(store.userInfo.roletype) || store.userInfo.id === record.id) &&
['native'].includes(record.usersource) && record.state === 'enabled'
},
component: shallowRef(defineAsyncComponent(() => import('@/views/iam/ChangeUserPassword.vue')))
},
{