1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * Copyright © 2015-2017 Ihor Vansach (ihor@magefan.com). All rights reserved.
- * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
- *
- * Glory to Ukraine! Glory to the heroes!
- */
- namespace Magefan\Blog\Controller\Adminhtml\Post\Upload;
- use Magefan\Blog\Controller\Adminhtml\Upload\Image\Action;
- /**
- * Blog gallery image upload controller
- */
- class Gallery extends Action
- {
- /**
- * File key
- *
- * @var string
- */
- protected $_fileKey = 'image';
- /**
- * Check admin permissions for this controller
- *
- * @return boolean
- */
- protected function _isAllowed()
- {
- return $this->_authorization->isAllowed('Magefan_Blog::post');
- }
- }
|