Skip to content

Commit f80a9ca

Browse files
authored
UI: Prevent restriction of changeOfferingForVolume API to Admin role (#11466)
1 parent 25f93b1 commit f80a9ca

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
@@ -226,7 +226,7 @@ export default {
226226
label: 'label.change.offering.for.volume',
227227
args: ['id', 'diskofferingid', 'size', 'miniops', 'maxiops', 'automigrate'],
228228
dataView: true,
229-
show: (record, store) => { return ['Allocated', 'Ready'].includes(record.state) && ['Admin'].includes(store.userInfo.roletype) },
229+
show: (record, store) => { return ['Allocated', 'Ready'].includes(record.state) },
230230
popup: true,
231231
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/ChangeOfferingForVolume.vue')))
232232
},

0 commit comments

Comments
 (0)