This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.20 by this push:
     new cf71938473b [UI] Allow change password for native users only. (#12584)
cf71938473b is described below

commit cf71938473bc86e03db3047356e9b868996e3cb0
Author: Suresh Kumar Anaparti <[email protected]>
AuthorDate: Mon Feb 23 17:09:55 2026 +0530

    [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')))
     },
     {

Reply via email to