Indexer.php 684 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Indexer\Controller\Adminhtml;
  7. abstract class Indexer extends \Magento\Backend\App\Action
  8. {
  9. /**
  10. * Check ACL permissions
  11. *
  12. * @return bool
  13. */
  14. protected function _isAllowed()
  15. {
  16. switch ($this->_request->getActionName()) {
  17. case 'list':
  18. return $this->_authorization->isAllowed('Magento_Indexer::index');
  19. case 'massOnTheFly':
  20. case 'massChangelog':
  21. return $this->_authorization->isAllowed('Magento_Indexer::changeMode');
  22. }
  23. return false;
  24. }
  25. }