// Fix multishop access when option is not enabled #PSCFV-2701
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15908 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -76,6 +76,11 @@ class AdminShopControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function viewAccess($disable = false)
|
||||||
|
{
|
||||||
|
return Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE');
|
||||||
|
}
|
||||||
|
|
||||||
public function initToolbar()
|
public function initToolbar()
|
||||||
{
|
{
|
||||||
if (!$this->id_shop_group && $this->object && $this->object->id_shop_group)
|
if (!$this->id_shop_group && $this->object && $this->object->id_shop_group)
|
||||||
|
|||||||
@@ -86,6 +86,11 @@ class AdminShopGroupControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function viewAccess($disable = false)
|
||||||
|
{
|
||||||
|
return Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE');
|
||||||
|
}
|
||||||
|
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
$this->list_simple_header = true;
|
$this->list_simple_header = true;
|
||||||
|
|||||||
@@ -80,6 +80,11 @@ class AdminShopUrlControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function viewAccess($disable = false)
|
||||||
|
{
|
||||||
|
return Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE');
|
||||||
|
}
|
||||||
|
|
||||||
public function renderList()
|
public function renderList()
|
||||||
{
|
{
|
||||||
$this->addRowActionSkipList('delete', array(1));
|
$this->addRowActionSkipList('delete', array(1));
|
||||||
|
|||||||
@@ -243,7 +243,7 @@
|
|||||||
<tab id="E-mail" id_parent="Advanced_parameters" active="1">
|
<tab id="E-mail" id_parent="Advanced_parameters" active="1">
|
||||||
<class_name>AdminEmails</class_name>
|
<class_name>AdminEmails</class_name>
|
||||||
</tab>
|
</tab>
|
||||||
<tab id="Multi-shop" id_parent="Advanced_parameters" active="1">
|
<tab id="Multi-shop" id_parent="Advanced_parameters" active="0">
|
||||||
<class_name>AdminShopGroup</class_name>
|
<class_name>AdminShopGroup</class_name>
|
||||||
</tab>
|
</tab>
|
||||||
<tab id="CSV_Import" id_parent="Advanced_parameters" active="1">
|
<tab id="CSV_Import" id_parent="Advanced_parameters" active="1">
|
||||||
|
|||||||
Reference in New Issue
Block a user