// Fixed issue with refresh of default_country_modules_list.xml

This commit is contained in:
dMetzger
2012-10-03 16:22:09 +00:00
parent b89c8f0966
commit e19831ba78
5 changed files with 14 additions and 10 deletions
+4 -1
View File
@@ -132,6 +132,8 @@ class AdminAccessControllerCore extends AdminController
public function ajaxProcessUpdateAccess()
{
if (_PS_MODE_DEMO_)
throw new PrestaShopException(Tools::displayError('This functionality has been disabled.'));
if ($this->tabAccess['edit'] != '1')
throw new PrestaShopException(Tools::displayError('You do not have permission to edit here.'));
@@ -190,9 +192,10 @@ class AdminAccessControllerCore extends AdminController
public function ajaxProcessUpdateModuleAccess()
{
if (_PS_MODE_DEMO_)
throw new PrestaShopException(Tools::displayError('This functionality has been disabled.'));
if ($this->tabAccess['edit'] != '1')
throw new PrestaShopException(Tools::displayError('You do not have permission to edit here.'));
/* Update Access Modules */
if (Tools::isSubmit('changeModuleAccess'))
{