From 08d5440c7fa945fbcccadcdd7d01736b1ec87c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 6 Feb 2013 15:48:16 +0100 Subject: [PATCH] // something missing in the last commit --- controllers/admin/AdminCustomerThreadsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 5b861511c..207a3ea57 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -678,6 +678,9 @@ class AdminCustomerThreadsControllerCore extends AdminController public function ajaxProcessSyncImap() { + if ($this->tabAccess['edit'] != '1') + throw new PrestaShopException(Tools::displayError('You do not have permission to edit here.')); + if (Tools::isSubmit('syncImapMail')) { if (!($url = Configuration::get('PS_SAV_IMAP_URL'))