CLOUDSTACK-3950: UI > template/ISO page > hide copyTemplate/copyISO action when secondary storage is region-wide.

This commit is contained in:
Jessica Wang 2013-08-20 14:39:31 -07:00
parent 4bee74464f
commit d96e599c7d
1 changed files with 3 additions and 6 deletions

View File

@ -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");
}
}