Jump to content

How to make a CMS page only for logged in customers


Recommended Posts

Hi,

 

I thinks you mus override the cms controller page with a test like :

    public function initContent()
    {
	if (!$this->context->customer->isLogged())
		Tools::redirect('index.php?controller=authentication');
        parent::initContent();
    }

Regards

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...