From 065ee9ecd3483074ce82b3ee36577ea6a2e53217 Mon Sep 17 00:00:00 2001 From: Spaceman1984 <49917670+Spaceman1984@users.noreply.github.com> Date: Mon, 31 May 2021 12:36:35 +0200 Subject: [PATCH] ui: Removed download icon when iso is not extractable for users (#5028) When an ISO is not marked as extractable, the download button should not be displayed in the UI. Fixes: #4535 --- ui/src/config/section/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/config/section/image.js b/ui/src/config/section/image.js index 6f08b9e4bd4..ce45ccc3973 100644 --- a/ui/src/config/section/image.js +++ b/ui/src/config/section/image.js @@ -268,7 +268,7 @@ 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.isextractable) || (record.domainid === store.userInfo.domainid && record.projectid && store.project && store.project.id && record.projectid === store.project.id)) && !(record.account === 'system' && record.domainid === 1) && record.isready