From 19dda7f53c0a00ac74c9521db1742f652aed3c47 Mon Sep 17 00:00:00 2001 From: Gabriel Ortiga Fernandes Date: Fri, 25 Nov 2022 08:22:58 -0300 Subject: [PATCH] Allow download of System VM templates through the UI --- ui/src/config/section/image.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/config/section/image.js b/ui/src/config/section/image.js index 8d4859930974..c95e0b96d3c3 100644 --- a/ui/src/config/section/image.js +++ b/ui/src/config/section/image.js @@ -141,11 +141,11 @@ export default { dataView: true, show: (record, store) => { return (['Admin'].includes(store.userInfo.roletype) || // If admin or owner or belongs to current project - (record.domainid === store.userInfo.domainid && record.account === store.userInfo.account) || + ((record.domainid === store.userInfo.domainid && record.account === store.userInfo.account) || (record.domainid === store.userInfo.domainid && record.projectid && store.project && store.project.id && record.projectid === store.project.id)) && record.templatetype !== 'SYSTEM' && - record.isready && - record.isextractable + record.isextractable) && + record.isready }, args: ['zoneid', 'mode'], mapping: {