mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Allow download of System VM templates through the UI (#7039)
Co-authored-by: Gabriel Ortiga Fernandes <gabriel.fernandes@scclouds.com.br>
This commit is contained in:
parent
3044d63a8b
commit
908981e848
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user