Skip to content

Commit 188bd86

Browse files
Pearl1594dhslove
authored andcommitted
UI: Prevent restriction of changeOfferingForVolume API to Admin role (apache#11466)
1 parent 7e7a1fa commit 188bd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/config/section/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export default {
242242
label: 'label.change.offering.for.volume',
243243
args: ['id', 'diskofferingid', 'size', 'miniops', 'maxiops', 'automigrate'],
244244
dataView: true,
245-
show: (record, store) => { return ['Allocated', 'Ready'].includes(record.state) && ['Admin'].includes(store.userInfo.roletype) },
245+
show: (record, store) => { return ['Allocated', 'Ready'].includes(record.state) },
246246
popup: true,
247247
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/ChangeOfferingForVolume.vue')))
248248
},

0 commit comments

Comments
 (0)