Disabling Customers Area

If you want to disable the customers area, you can achieve this but adding a simple hook which is available for the customers area.

Method 1 

In application/helpers create file with name my_functions_helper.php and add the following code:

<?php

hooks()->add_action('after_clients_area_init', 'my_disable_customers_area'); 
hooks()->add_action('clients_authentication_constructor', 'my_disable_customers_area'); 
// Uncomment to disable customers area knowledge base as well
//  hooks()->add_action('customers_area_knowledge_base_construct', 'my_disable_customers_area'); 

function my_disable_customers_area(){ 
    header('HTTP/1.0 401 Unauthorized'); 
    die('Access not allowed'); 
}

Now nobody will be able to access in the clients area.

Did you find this article useful?

  • 404 After Installation

    Only apply the following suggestions if you are getting 404 error not found, the default Daedelix PS...
  • Implement PSA (3)

    Now that the PSA is working we should set up all the features and 3rd party accounts. 1. Instal...