You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2025/08/29 07:06:09 UTC

(cloudstack) branch 4.19 updated: UI: Prevent restriction of changeOfferingForVolume API to Admin role (#11466)

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

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


The following commit(s) were added to refs/heads/4.19 by this push:
     new f80a9ca4823 UI: Prevent restriction of changeOfferingForVolume API to Admin role (#11466)
f80a9ca4823 is described below

commit f80a9ca482367a2334794cd2743849c78e1c94e3
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Fri Aug 29 03:06:03 2025 -0400

    UI: Prevent restriction of changeOfferingForVolume API to Admin role (#11466)
---
 ui/src/config/section/storage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/config/section/storage.js b/ui/src/config/section/storage.js
index a869dfb6e80..5c2a6868646 100644
--- a/ui/src/config/section/storage.js
+++ b/ui/src/config/section/storage.js
@@ -226,7 +226,7 @@ export default {
           label: 'label.change.offering.for.volume',
           args: ['id', 'diskofferingid', 'size', 'miniops', 'maxiops', 'automigrate'],
           dataView: true,
-          show: (record, store) => { return ['Allocated', 'Ready'].includes(record.state) && ['Admin'].includes(store.userInfo.roletype) },
+          show: (record, store) => { return ['Allocated', 'Ready'].includes(record.state) },
           popup: true,
           component: shallowRef(defineAsyncComponent(() => import('@/views/storage/ChangeOfferingForVolume.vue')))
         },