From 908981e84847f59a5875e84b1f3b45e75a9ca783 Mon Sep 17 00:00:00 2001 From: GaOrtiga <49285692+GaOrtiga@users.noreply.github.com> Date: Wed, 4 Jan 2023 05:50:13 -0300 Subject: [PATCH] Allow download of System VM templates through the UI (#7039) Co-authored-by: Gabriel Ortiga Fernandes --- 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 8d485993097..c95e0b96d3c 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: {