ltsecurityinc安防产品在线商城代码
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
namespace JR\NetSuite\Controller\Adminhtml;
|
||||
|
||||
use Magento\Backend\App\Action;
|
||||
use Magento\Backend\App\Action\Context;
|
||||
|
||||
class Location extends Action
|
||||
{
|
||||
protected $_coreRegistry;
|
||||
const ADMIN_RESOURCE = 'JR_NetSuite::top_level';
|
||||
|
||||
/**
|
||||
* @param \Magento\Backend\App\Action\Context $context
|
||||
* @param \Magento\Framework\Registry $coreRegistry
|
||||
*/
|
||||
public function __construct(
|
||||
\Magento\Backend\App\Action\Context $context,
|
||||
\Magento\Framework\Registry $coreRegistry
|
||||
) {
|
||||
$this->_coreRegistry = $coreRegistry;
|
||||
parent::__construct($context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute Action
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
$doNothing = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Init page
|
||||
*
|
||||
* @param \Magento\Backend\Model\View\Result\Page $resultPage
|
||||
* @return \Magento\Backend\Model\View\Result\Page
|
||||
*/
|
||||
public function initPage($resultPage)
|
||||
{
|
||||
$resultPage->setActiveMenu(self::ADMIN_RESOURCE)
|
||||
->addBreadcrumb(__('NetSuite'), __('NetSuite'))
|
||||
->addBreadcrumb(__('Location'), __('Location'));
|
||||
return $resultPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function _isAllowed()
|
||||
{
|
||||
return $this->_authorization
|
||||
->isAllowed(
|
||||
'JR_NetSuite::location'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user