We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d3061 commit a3f022eCopy full SHA for a3f022e
app/code/Magento/Ui/Controller/Adminhtml/Index/Render.php
@@ -86,6 +86,14 @@ public function execute()
86
87
$contentType = $this->contentTypeResolver->resolve($component->getContext());
88
$this->getResponse()->setHeader('Content-Type', $contentType, true);
89
+ }else {
90
+ /** @var \Magento\Framework\Controller\Result\Json $resultJson */
91
+ $resultJson = $this->resultJsonFactory->create();
92
+ $resultJson->setStatusHeader(
93
+ \Zend\Http\Response::STATUS_CODE_403,
94
+ \Zend\Http\AbstractMessage::VERSION_11,
95
+ 'Forbidden'
96
+ );
97
}
98
} catch (\Magento\Framework\Exception\LocalizedException $e) {
99
$this->logger->critical($e);
0 commit comments