diff --git a/ui/src/components/view/DetailSettings.vue b/ui/src/components/view/DetailSettings.vue index 1e9fc8ca899..641f25f5551 100644 --- a/ui/src/components/view/DetailSettings.vue +++ b/ui/src/components/view/DetailSettings.vue @@ -173,7 +173,8 @@ export default { }, isAdminOrOwner () { return ['Admin'].includes(this.$store.getters.userInfo.roletype) || - (this.resource.domainid === this.$store.getters.userInfo.domainid && this.resource.account === this.$store.getters.userInfo.account) + (this.resource.domainid === this.$store.getters.userInfo.domainid && this.resource.account === this.$store.getters.userInfo.account) || + this.resource.project && this.resource.projectid === this.$store.getters.project.id }, runApi () { var apiName = '' diff --git a/ui/src/views/image/IsoZones.vue b/ui/src/views/image/IsoZones.vue index f76c0344964..3dcd960dc67 100644 --- a/ui/src/views/image/IsoZones.vue +++ b/ui/src/views/image/IsoZones.vue @@ -228,8 +228,7 @@ export default { isActionPermitted () { return (['Admin'].includes(this.$store.getters.userInfo.roletype) || (this.resource.domainid === this.$store.getters.userInfo.domainid && this.resource.account === this.$store.getters.userInfo.account)) && - !(this.resource.account !== 'SYSTEM' && this.resource.domainid === 1) && - this.resource.isready + !(this.resource.account !== 'SYSTEM' && this.resource.domainid === 1) }, deleteIso (record) { const params = {