mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: Prevent restriction of changeOfferingForVolume API to Admin role (#11466)
This commit is contained in:
parent
25f93b1d6b
commit
f80a9ca482
@ -226,7 +226,7 @@ export default {
|
|||||||
label: 'label.change.offering.for.volume',
|
label: 'label.change.offering.for.volume',
|
||||||
args: ['id', 'diskofferingid', 'size', 'miniops', 'maxiops', 'automigrate'],
|
args: ['id', 'diskofferingid', 'size', 'miniops', 'maxiops', 'automigrate'],
|
||||||
dataView: true,
|
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,
|
popup: true,
|
||||||
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/ChangeOfferingForVolume.vue')))
|
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/ChangeOfferingForVolume.vue')))
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user