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.venkatesh@global.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rakesh 2020-06-24 06:01:18 +02:00 committed by Rohit Yadav
parent ac0e5daabd
commit bcdb8f4067
2 changed files with 2 additions and 0 deletions

View File

@ -595,6 +595,7 @@ export default {
this.isSystem = true
}
this.fetchData()
this.isPublic = this.isAdmin()
},
methods: {
fetchData () {

View File

@ -348,6 +348,7 @@ export default {
},
mounted () {
this.fetchData()
this.isPublic = this.isAdmin()
},
methods: {
fetchData () {