<?php
/**
* Landofcoder
*
* NOTICE OF LICENSE
*
* This source file is subject to the Landofcoder.com license that is
* available through the world-wide-web at this URL:
* https://landofcoder.com/license-agreement.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Landofcoder
* @package Lofmp_Blog
* @copyright Copyright (c) 2022 Landofcoder (https://landofcoder.com/)
* @license https://landofcoder.com/LICENSE-1.0.html
*/
namespace Lofmp\Blog\Controller\Adminhtml\Category\Upload;
use Lofmp\Blog\Controller\Adminhtml\Upload\Image\Action;
/**
* Blog featured image upload controller
*/
class MainImage extends Action
{
/**
* File key
*
* @var string
*/
protected $_fileKey = 'image';
/**
* Check admin permissions for this controller
*
* @return boolean
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Lofmp_Blog::category_save');
}
}
|