Jump to content

Navigate Site After Login In Maintenance Mode


g.succu

Recommended Posts

For future references I've found the solution overriding the function displayMaintenancePage inside the FrontController.php file of the classes.

Adding these two lines:

 
$cookie = new Cookie('psAdmin');
$id_employee = $cookie->id_employee;
        
and editing the if condition like this
 
if ($id_employee <= 0 && ($this->maintenance == true || !(int)Configuration::get('PS_SHOP_ENABLE'))) {
               
Not so clean but works fine to me.
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...