mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3950: UI > template/ISO page > hide copyTemplate/copyISO action when secondary storage is region-wide.
This commit is contained in:
parent
4bee74464f
commit
d96e599c7d
|
|
@ -1677,10 +1677,8 @@
|
|||
//do nothing
|
||||
} else {
|
||||
allowedActions.push("edit");
|
||||
|
||||
//Swift and S3 are region-wide secondary storage
|
||||
//if (havingSwift == false && havingS3 == false)
|
||||
if (havingSwift == false && jsonObj.zoneid != null) { //"jsonObj.zoneid == null" means it is registered on region-wide S3 => global to all zones
|
||||
|
||||
if(g_regionsecondaryenabled != true) {
|
||||
allowedActions.push("copyTemplate");
|
||||
}
|
||||
|
||||
|
|
@ -1718,8 +1716,7 @@
|
|||
} else {
|
||||
allowedActions.push("edit");
|
||||
|
||||
//Swift and S3 are region-wide secondary storage
|
||||
if (havingSwift == false && jsonObj.zoneid != null) { //"jsonObj.zoneid == null" means it is registered on region-wide S3 => global to all zones
|
||||
if(g_regionsecondaryenabled != true) {
|
||||
allowedActions.push("copyISO");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue