You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/05/18 09:11:24 UTC
[GitHub] [cloudstack] Spaceman1984 commented on a change in pull request #5028: Removed download icon when ISO is not extractable for users
Spaceman1984 commented on a change in pull request #5028:
URL: https://github.com/apache/cloudstack/pull/5028#discussion_r634193575
##########
File path: 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
Review comment:
No - admins can download all ISOs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org