Skip to content

Commit cf71938

Browse files
[UI] Allow change password for native users only. (#12584)
1 parent d054344 commit cf71938

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/src/config/section/user.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ export default {
6969
label: 'label.action.change.password',
7070
dataView: true,
7171
popup: true,
72+
show: (record, store) => {
73+
return (['Admin', 'DomainAdmin'].includes(store.userInfo.roletype) || store.userInfo.id === record.id) &&
74+
['native'].includes(record.usersource) && record.state === 'enabled'
75+
},
7276
component: shallowRef(defineAsyncComponent(() => import('@/views/iam/ChangeUserPassword.vue')))
7377
},
7478
{

0 commit comments

Comments
 (0)