// Fix module blockmaccount with context
This commit is contained in:
@@ -58,7 +58,7 @@ class BlockMyAccount extends Module
|
|||||||
|
|
||||||
public function hookLeftColumn($params)
|
public function hookLeftColumn($params)
|
||||||
{
|
{
|
||||||
if ($this->context->customer->isLogged())
|
if (!$this->context->customer->isLogged())
|
||||||
return false;
|
return false;
|
||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
||||||
|
|||||||
Reference in New Issue
Block a user