From cf71938473bc86e03db3047356e9b868996e3cb0 Mon Sep 17 00:00:00 2001 From: Suresh Kumar Anaparti Date: Mon, 23 Feb 2026 17:09:55 +0530 Subject: [PATCH] [UI] Allow change password for native users only. (#12584) --- ui/src/config/section/user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/config/section/user.js b/ui/src/config/section/user.js index 60a55973f8c..d26901aecca 100644 --- a/ui/src/config/section/user.js +++ b/ui/src/config/section/user.js @@ -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'))) }, {