- Se adiciona la validación con licencia Drive.
- Se elemina codigo que ya no se utiliza.
This commit is contained in:
Marco A. Nina Mena
2016-01-06 09:10:38 -04:00
parent fc9da96341
commit 8d817ce692
3 changed files with 34 additions and 79 deletions

View File

@@ -45,7 +45,8 @@ class pmGmail extends Controller
}
}
} else {
$pmGoogle->setStatusService(false);
$pmGoogle->setServiceGmailStatus(false);
$pmGoogle->setServiceDriveStatus(false);
$message = G::LoadTranslation('ID_ENABLE_PMGMAIL') . ': ' . G::LoadTranslation('ID_DISABLE');
}
G::auditLog("Update Settings Gmail", $message);
@@ -67,11 +68,23 @@ class pmGmail extends Controller
$googleCertificate = $pmGoogle->getServiceAccountCertificate();
$statusGmail = $pmGoogle->getServiceGmailStatus();
$statusDrive = $pmGoogle->getServiceDriveStatus();
$disableGmail = true;
$disableDrive = true;
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
$disableGmail = false;
}
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
$disableDrive = false;
}
$this->setJSVar('accountEmail', $accountEmail);
$this->setJSVar('googleCertificate', $googleCertificate);
$this->setJSVar('statusGmail', $statusGmail);
$this->setJSVar('statusDrive', $statusDrive);
$this->setJSVar('disableGmail', $disableGmail);
$this->setJSVar('disableDrive', $disableDrive);
G::RenderPage('publish', 'extJs');