You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/06/24 04:01:26 UTC

[cloudstack-primate] branch master updated: iam: Allow creating Compute/Disk offering as Domain admin (#446)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 09bc734  iam: Allow creating Compute/Disk offering as Domain admin (#446)
09bc734 is described below

commit 09bc73422ed94db6b9ea19997ab57491a796691a
Author: Rakesh <ra...@gmail.com>
AuthorDate: Wed Jun 24 06:01:18 2020 +0200

    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 <r....@global.leaseweb.com>
---
 src/views/offering/AddComputeOffering.vue | 1 +
 src/views/offering/AddDiskOffering.vue    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/views/offering/AddComputeOffering.vue b/src/views/offering/AddComputeOffering.vue
index 34c2f96..c58b69c 100644
--- a/src/views/offering/AddComputeOffering.vue
+++ b/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/src/views/offering/AddDiskOffering.vue b/src/views/offering/AddDiskOffering.vue
index 021b967..c498326 100644
--- a/src/views/offering/AddDiskOffering.vue
+++ b/src/views/offering/AddDiskOffering.vue
@@ -348,6 +348,7 @@ export default {
   },
   mounted () {
     this.fetchData()
+    this.isPublic = this.isAdmin()
   },
   methods: {
     fetchData () {