mirror of https://github.com/apache/cloudstack.git
[UI] Allow change password for native users only. (#12584)
This commit is contained in:
parent
d0543449a6
commit
cf71938473
|
|
@ -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')))
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue