andre преди 2 години
родител
ревизия
7e348b57df
променени са 1 файла, в които са добавени 10 реда и са изтрити 3 реда
  1. 10 3
      app/Http/Client/EmailAccount.php

+ 10 - 3
app/Http/Client/EmailAccount.php

@@ -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'))