GI-155
Validating if pmgmail id activated before sending any email.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<script>
|
||||
if (typeof window.parent != 'undefined') {
|
||||
<?php
|
||||
$enablePMGmail = false;
|
||||
require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.pmDrive.php");
|
||||
$pmDrive = new PMDrive();
|
||||
$enablePMGmail = $pmDrive->getStatusService();
|
||||
if (isset( $_GET['ux'] )) {
|
||||
switch ($_GET['ux']) {
|
||||
case 'SIMPLIFIED':
|
||||
@@ -11,7 +15,7 @@ if (isset( $_GET['ux'] )) {
|
||||
default:
|
||||
$url = 'casesListExtJs';
|
||||
}
|
||||
} else if( isset( $_GET['gmail'] ) ){
|
||||
} else if( isset( $_GET['gmail']) && !empty($enablePMGmail) && $enablePMGmail==1 ){
|
||||
$url = 'derivatedGmail';
|
||||
} else {
|
||||
$url = 'casesListExtJs';
|
||||
@@ -21,7 +25,7 @@ if (isset( $_GET['ux'] )) {
|
||||
}
|
||||
echo " window.parent.location.href = '$url';";
|
||||
if (isset( $_GET['ux'] )) {
|
||||
if(PMLicensedFeatures::getSingleton()->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')){
|
||||
if(PMLicensedFeatures::getSingleton()->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09') && !empty($enablePMGmail) && $enablePMGmail==1){
|
||||
echo '} else { window.parent.location.href = \'derivatedGmail\'; }';
|
||||
} else {
|
||||
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
|
||||
|
||||
@@ -33,7 +33,12 @@ foreach ($appDelPrev as $app){
|
||||
require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.labelsGmail.php");
|
||||
$oLabels = new labelsGmail();
|
||||
$oResponse = $oLabels->setLabels($caseId, $actualIndex, $actualLastIndex, false);
|
||||
if( $_SESSION['gmail'] === 1 ){
|
||||
|
||||
$enablePMGmail = false;
|
||||
G::LoadClass( "pmDrive" );
|
||||
$pmDrive = new PMDrive();
|
||||
$enablePMGmail = $pmDrive->getStatusService();
|
||||
if( $_SESSION['gmail'] === 1 && !empty($enablePMGmail) && $enablePMGmail==1 ){
|
||||
//$_SESSION['gmail'] = 0;
|
||||
$mUrl = '/sys'. $_SESSION['WORKSPACE'] .'/en/neoclassic/cases/cases_Open?APP_UID='.$caseId.'&DEL_INDEX='.$actualIndex.'&action=sent';
|
||||
} else{
|
||||
|
||||
Reference in New Issue
Block a user