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
This commit is contained in:
Spaceman1984 2021-05-31 12:36:35 +02:00 committed by GitHub
parent 57e4e3b6b1
commit 065ee9ecd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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