From bcdb8f4067c348199e766be5be71abc36705bb95 Mon Sep 17 00:00:00 2001 From: Rakesh Date: Wed, 24 Jun 2020 06:01:18 +0200 Subject: [PATCH] iam: Allow creating Compute/Disk offering as Domain admin (#446) Currently only "ROOT" admin can create compute and disk offering. If we login as domain admin then we cant create a compute and disk offering as domain id's is not passed to the api. If we login as domain admin we need to set "isPublic" to false so that domain id list will be displayed Co-authored-by: Rakesh Venkatesh Signed-off-by: Rohit Yadav --- ui/src/views/offering/AddComputeOffering.vue | 1 + ui/src/views/offering/AddDiskOffering.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/views/offering/AddComputeOffering.vue b/ui/src/views/offering/AddComputeOffering.vue index 34c2f9662c9..c58b69cd4e8 100644 --- a/ui/src/views/offering/AddComputeOffering.vue +++ b/ui/src/views/offering/AddComputeOffering.vue @@ -595,6 +595,7 @@ export default { this.isSystem = true } this.fetchData() + this.isPublic = this.isAdmin() }, methods: { fetchData () { diff --git a/ui/src/views/offering/AddDiskOffering.vue b/ui/src/views/offering/AddDiskOffering.vue index 021b9670810..c498326a0b6 100644 --- a/ui/src/views/offering/AddDiskOffering.vue +++ b/ui/src/views/offering/AddDiskOffering.vue @@ -348,6 +348,7 @@ export default { }, mounted () { this.fetchData() + this.isPublic = this.isAdmin() }, methods: { fetchData () {