// Fixed issue with refresh of default_country_modules_list.xml

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17736 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-10-03 16:22:09 +00:00
parent d3adbb1ba4
commit 64a83b9a55
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'))
{