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
19
19
* @see _isAllowed()
20
20
*/
21
21
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
+ }
22
33
}
Original file line number Diff line number Diff line change @@ -60,15 +60,4 @@ public function execute()
60
60
61
61
$ this ->_view ->renderLayout ();
62
62
}
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
- }
74
63
}
You can’t perform that action at this time.
0 commit comments