Aw.php 733 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. namespace Magefan\Blog\Controller\Adminhtml\Import;
  9. /**
  10. * Blog aw import controller
  11. */
  12. class Aw extends \Magento\Backend\App\Action
  13. {
  14. /**
  15. * Prepare aw import
  16. * @return \Magento\Framework\Controller\ResultInterface
  17. */
  18. public function execute()
  19. {
  20. $this->_redirect('*/*/');
  21. }
  22. /**
  23. * Check is allowed access
  24. *
  25. * @return bool
  26. */
  27. protected function _isAllowed()
  28. {
  29. return $this->_authorization->isAllowed('Magefan_Blog::import');
  30. }
  31. }