MT-115: Selective Import/Export - Add license key to include it only in enterprise/enterprise edition

This commit is contained in:
mcuiza
2016-04-08 15:55:18 -04:00
parent a3fd15f69f
commit 415546f346
3 changed files with 13 additions and 3 deletions

View File

@@ -95,5 +95,14 @@ if(sizeof($callBackFile)) {
}
$oHeadPublisher->assign("importProcessCallbackFile", $file);
$isGranularFeature = false;
/*----------------------------------********---------------------------------*/
$licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=')) {
$isGranularFeature = true;
}
/*----------------------------------********---------------------------------*/
$oHeadPublisher->assign("isGranularFeature", $isGranularFeature);
G::RenderPage( 'publish', 'extJs' );

View File

@@ -66,7 +66,8 @@ class System extends Api
$enabledFeatures = array();
/*----------------------------------********---------------------------------*/
$keys = array ('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=',
'oq3S29xemxEZXJpZEIzN01qenJUaStSekY4cTdJVm5vbWtVM0d4S2lJSS9qUT0=');
'oq3S29xemxEZXJpZEIzN01qenJUaStSekY4cTdJVm5vbWtVM0d4S2lJSS9qUT0=',
'jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=');
foreach ($keys as $key) {
if (\PMLicensedFeatures
::getSingleton()

View File

@@ -251,7 +251,7 @@ Ext.onReady(function(){
//Code export - exportGranular (handle)
var exportProcessOption;
/*----------------------------------********---------------------------------*/
if (true) {
if (isGranularFeature) {
exportProcessOption = {
xtype: "tbsplit",
id: "export",
@@ -532,7 +532,7 @@ Ext.onReady(function(){
//code export - exportGranular (handler)
var menuExportOption;
/*----------------------------------********---------------------------------*/
if (true) {
if (isGranularFeature) {
menuExportOption = {
text: _("ID_EXPORT"),
icon: "/images/export.png",