This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new b0c77190066 ui: do not show admin only options to users while
registering template (#11702)
b0c77190066 is described below
commit b0c77190066fd74336ea831ccf9e5427e793ba7f
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Sep 24 21:12:28 2025 +0530
ui: do not show admin only options to users while registering template
(#11702)
---
ui/src/views/image/RegisterOrUploadTemplate.vue | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ui/src/views/image/RegisterOrUploadTemplate.vue
b/ui/src/views/image/RegisterOrUploadTemplate.vue
index 4cb6aa10df8..188f8c45ae9 100644
--- a/ui/src/views/image/RegisterOrUploadTemplate.vue
+++ b/ui/src/views/image/RegisterOrUploadTemplate.vue
@@ -685,6 +685,9 @@ export default {
})
},
fetchCustomHypervisorName () {
+ if (!('listConfigurations' in store.getters.apis)) {
+ return
+ }
const params = {
name: 'hypervisor.custom.display.name'
}
@@ -702,6 +705,9 @@ export default {
})
},
fetchExtensionsList () {
+ if (!this.isAdminRole) {
+ return
+ }
this.loading = true
getAPI('listExtensions', {
}).then(response => {
@@ -758,6 +764,9 @@ export default {
name: 'Simulator'
})
}
+ if (!this.isAdminRole) {
+ listhyperVisors = listhyperVisors.filter(hv => hv.name !==
'External')
+ }
this.hyperVisor.opts = listhyperVisors
}).finally(() => {
this.hyperVisor.loading = false