Skip to content

Commit 065ee9e

Browse files
authored
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
1 parent 57e4e3b commit 065ee9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/config/section/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default {
268268
dataView: true,
269269
show: (record, store) => {
270270
return (['Admin'].includes(store.userInfo.roletype) || // If admin or owner or belongs to current project
271-
(record.domainid === store.userInfo.domainid && record.account === store.userInfo.account) ||
271+
(record.domainid === store.userInfo.domainid && record.account === store.userInfo.account && record.isextractable) ||
272272
(record.domainid === store.userInfo.domainid && record.projectid && store.project && store.project.id && record.projectid === store.project.id)) &&
273273
!(record.account === 'system' && record.domainid === 1) &&
274274
record.isready

0 commit comments

Comments
 (0)