mirror of https://github.com/apache/cloudstack.git
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:
parent
57e4e3b6b1
commit
065ee9ecd3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue