Fixed: Permissions issues
This commit is contained in:
@@ -3584,7 +3584,7 @@ class AdminImportControllerCore extends AdminController
|
||||
|
||||
public function ajaxProcessSaveImportMatchs()
|
||||
{
|
||||
if ($this->tabAccess['edit'] === '1') {
|
||||
if ($this->tabAccess['edit'] === 1) {
|
||||
$match = implode('|', Tools::getValue('type_value'));
|
||||
Db::getInstance()->execute('INSERT IGNORE INTO `'._DB_PREFIX_.'import_match` (
|
||||
`id_import_match` ,
|
||||
@@ -3605,7 +3605,7 @@ class AdminImportControllerCore extends AdminController
|
||||
|
||||
public function ajaxProcessLoadImportMatchs()
|
||||
{
|
||||
if ($this->tabAccess['edit'] === '1') {
|
||||
if ($this->tabAccess['edit'] === 1) {
|
||||
$return = Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'import_match` WHERE `id_import_match` = '
|
||||
.(int)Tools::getValue('idImportMatchs'), true, false);
|
||||
die('{"id" : "'.$return[0]['id_import_match'].'", "matchs" : "'.$return[0]['match'].'", "skip" : "'
|
||||
@@ -3615,7 +3615,7 @@ class AdminImportControllerCore extends AdminController
|
||||
|
||||
public function ajaxProcessDeleteImportMatchs()
|
||||
{
|
||||
if ($this->tabAccess['edit'] === '1') {
|
||||
if ($this->tabAccess['edit'] === 1) {
|
||||
Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'import_match` WHERE `id_import_match` = '
|
||||
.(int)Tools::getValue('idImportMatchs'), false);
|
||||
die;
|
||||
|
||||
Reference in New Issue
Block a user