Skip to content

Commit e64b3ef

Browse files
committed
MAGETWO-97671: Invalid action behavior
1 parent cfed026 commit e64b3ef

File tree

1 file changed

+7
-8
lines changed
  • app/code/Magento/Email/Controller/Adminhtml/Email/Template

1 file changed

+7
-8
lines changed

app/code/Magento/Email/Controller/Adminhtml/Email/Template/Popup.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
*/
1111
class Popup extends \Magento\Backend\App\Action
1212
{
13+
/**
14+
* Authorization level of a basic admin session.
15+
*
16+
* @see _isAllowed()
17+
*/
18+
const ADMIN_RESOURCE = 'Magento_Email::template';
19+
1320
/**
1421
* @var \Magento\Framework\View\Result\PageFactory
1522
*/
@@ -38,12 +45,4 @@ public function execute()
3845
{
3946
return $this->resultPageFactory->create();
4047
}
41-
42-
/**
43-
* @inheritdoc
44-
*/
45-
protected function _isAllowed()
46-
{
47-
return $this->_authorization->isAllowed('Magento_Email::template');
48-
}
4948
}

0 commit comments

Comments
 (0)