Skip to content

Commit 4d7f78a

Browse files
committed
AC-11496: Fix for import/export tax rates
1 parent 0c27bf9 commit 4d7f78a

File tree

1 file changed

+1
-16
lines changed
  • app/code/Magento/TaxImportExport/Controller/Adminhtml

1 file changed

+1
-16
lines changed

app/code/Magento/TaxImportExport/Controller/Adminhtml/Rate.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class Rate extends \Magento\Backend\App\Action
1818
*
1919
* @see _isAllowed()
2020
*/
21-
public const ADMIN_RESOURCE = 'Magento_Tax::manage_tax';
21+
public const ADMIN_RESOURCE = 'Magento_TaxImportExport::import_export';
2222

2323
/**
2424
* @var \Magento\Framework\App\Response\Http\FileFactory
@@ -36,19 +36,4 @@ public function __construct(
3636
$this->fileFactory = $fileFactory;
3737
parent::__construct($context);
3838
}
39-
40-
/**
41-
* Check ACL permission
42-
*
43-
* @return bool
44-
*/
45-
protected function _isAllowed(): bool
46-
{
47-
return match (strtolower($this->getRequest()->getActionName())) {
48-
'importexport', 'importpost', 'exportcsv', 'exportxml', 'exportpost' =>
49-
$this->_authorization->isAllowed('Magento_TaxImportExport::import_export'),
50-
default =>
51-
$this->_authorization->isAllowed(self::ADMIN_RESOURCE),
52-
};
53-
}
5439
}

0 commit comments

Comments
 (0)