Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Indexer.php
Go to the documentation of this file.
1 <?php
7 
8 abstract class Indexer extends \Magento\Backend\App\Action
9 {
15  protected function _isAllowed()
16  {
17  switch ($this->_request->getActionName()) {
18  case 'list':
19  return $this->_authorization->isAllowed('Magento_Indexer::index');
20  case 'massOnTheFly':
21  case 'massChangelog':
22  return $this->_authorization->isAllowed('Magento_Indexer::changeMode');
23  }
24  return false;
25  }
26 }