From c9aeba32ea5e864181be5fcaa37a122d5113d572 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 18 Aug 2025 16:21:06 -0400 Subject: [PATCH] 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 a869dfb6e801..5c2a6868646d 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'))) },