You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2025/08/18 20:21:38 UTC

(cloudstack) branch allow-offering-change-vol-nonAdmin created (now c9aeba32ea5)

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

pearl11594 pushed a change to branch allow-offering-change-vol-nonAdmin
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


      at c9aeba32ea5 UI: Prevent restriction of changeOfferingForVolume API to Admin role

This branch includes the following new commits:

     new c9aeba32ea5 UI: Prevent restriction of changeOfferingForVolume API to Admin role

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(cloudstack) 01/01: UI: Prevent restriction of changeOfferingForVolume API to Admin role

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a commit to branch allow-offering-change-vol-nonAdmin
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit c9aeba32ea5e864181be5fcaa37a122d5113d572
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Mon Aug 18 16:21:06 2025 -0400

    UI: Prevent restriction of changeOfferingForVolume API to Admin role
---
 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')))
         },