resultFactory->create(ResultFactory::TYPE_JSON); $resultJson->setData($this->tunnelStatus->getStatus()); return $resultJson; } protected function _isAllowed() { return $this->_authorization->isAllowed('MageSail_Magesail::tunnel'); } }