Gallery.php 735 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © 2015-2017 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\Post\Upload;
  9. use Magefan\Blog\Controller\Adminhtml\Upload\Image\Action;
  10. /**
  11. * Blog gallery image upload controller
  12. */
  13. class Gallery extends Action
  14. {
  15. /**
  16. * File key
  17. *
  18. * @var string
  19. */
  20. protected $_fileKey = 'image';
  21. /**
  22. * Check admin permissions for this controller
  23. *
  24. * @return boolean
  25. */
  26. protected function _isAllowed()
  27. {
  28. return $this->_authorization->isAllowed('Magefan_Blog::post');
  29. }
  30. }