Skip to content

Commit d8348d8

Browse files
sureshanapartiLocharla, Sandeep
authored andcommitted
[UI] Allow change password for native users only. (apache#12584)
1 parent d2229b5 commit d8348d8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ui/src/config/section/user.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ export default {
106106
label: 'label.action.change.password',
107107
dataView: true,
108108
popup: true,
109+
show: (record, store) => {
110+
return (['Admin', 'DomainAdmin'].includes(store.userInfo.roletype) || store.userInfo.id === record.id) &&
111+
['native'].includes(record.usersource) && record.state === 'enabled'
112+
},
109113
component: shallowRef(defineAsyncComponent(() => import('@/views/iam/ChangeUserPassword.vue')))
110114
},
111115
{

0 commit comments

Comments
 (0)