File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
app/code/Magento/Newsletter/Controller/Adminhtml Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,15 @@ abstract class Queue extends \Magento\Backend\App\Action
1919 * @see _isAllowed()
2020 */
2121 const ADMIN_RESOURCE = 'Magento_Newsletter::queue ' ;
22+
23+ /**
24+ * Checks the acl permission
25+ *
26+ * @return bool
27+ */
28+ protected function _isAllowed ()
29+ {
30+ return ($ this ->_authorization ->isAllowed (self ::ADMIN_RESOURCE ) &&
31+ $ this ->_authorization ->isAllowed ('Magento_Newsletter::template ' ));
32+ }
2233}
Original file line number Diff line number Diff line change @@ -60,15 +60,4 @@ public function execute()
6060
6161 $ this ->_view ->renderLayout ();
6262 }
63-
64- /**
65- * Checks the acl permission
66- *
67- * @return bool
68- */
69- protected function _isAllowed ()
70- {
71- return ($ this ->_authorization ->isAllowed ('Magento_Newsletter::queue ' ) &&
72- $ this ->_authorization ->isAllowed ('Magento_Newsletter::template ' ));
73- }
7463}
You can’t perform that action at this time.
0 commit comments