Browse Source

disable sidebar on inactive services

andre 6 months ago
parent
commit
91007d156c
1 changed files with 4 additions and 7 deletions
  1. 4 7
      app/Services/ClientAreaSidebarService.php

+ 4 - 7
app/Services/ClientAreaSidebarService.php

@@ -94,13 +94,10 @@ class ClientAreaSidebarService
             return;
             return;
         }
         }
 
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this->getWhmcsParamByKey('status'),
-            'Debug',
-            $this->primarySidebar
-        );
+        if ($this->getWhmcsParamByKey('status') !== 'Active')
+        {
+            return;
+        }
 
 
         /**
         /**
          * @var SidebarService $sidebarService
          * @var SidebarService $sidebarService