| Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/Rewards/Controller/Adminhtml/ |
| Current File : //var/www/www.indacotrentino.com/www/app/code/Amasty/Rewards/Controller/Adminhtml/Rewards.php |
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2023 Amasty (https://www.amasty.com)
* @package Reward Points Base for Magento 2
*/
namespace Amasty\Rewards\Controller\Adminhtml;
abstract class Rewards extends \Magento\Backend\App\Action
{
/**
* Prepare customer default title
*
* @param \Magento\Backend\Model\View\Result\Page $resultPage
* @return void
*/
protected function prepareDefaultCustomerTitle(\Magento\Backend\Model\View\Result\Page $resultPage)
{
$resultPage->getConfig()->getTitle()->prepend(__('Rewards'));
}
/**
* Customer access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Amasty_Rewards::customer');
}
}