|
|
@@ -28,11 +28,18 @@ class EmailAccount extends AbstractClientController
|
|
|
{
|
|
|
$productManager = new ProductManager();
|
|
|
$productManager->loadByHostingId($this->request->get('id'));
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ 'Debug params',
|
|
|
+ $this->getWhmcsParamByKey('status')
|
|
|
+ );
|
|
|
|
|
|
-// if ($this->getWhmcsParamByKey('status') !== 'Active' || !$productManager->isControllerAccessible(ControllerEnums::EMAIL_ACCOUNT_PAGE))
|
|
|
-// {
|
|
|
+ if ($this->getWhmcsParamByKey('status') !== 'Active' || !$productManager->isControllerAccessible(ControllerEnums::EMAIL_ACCOUNT_PAGE))
|
|
|
+ {
|
|
|
return Helper\redirectByUrl(BuildUrlExtended::getProvisioningUrl('',false,false));
|
|
|
-// }
|
|
|
+ }
|
|
|
|
|
|
return Helper\view()
|
|
|
->addElement(new Description('emailAccount'))
|