Skip to content

Commit f434d2e

Browse files
Rizwan KhanRizwan Khan
authored andcommitted
AC-11453: newsletter templates and queue validations
1 parent bcdd09a commit f434d2e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

app/code/Magento/Newsletter/Controller/Adminhtml/Queue.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

app/code/Magento/Newsletter/Controller/Adminhtml/Queue/Edit.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)