Skip to content

Commit c4a7027

Browse files
Rizwan KhanRizwan Khan
authored andcommitted
AC-11453: newsletter templates and queue validations
1 parent 42d79be commit c4a7027

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Newsletter/Controller/Adminhtml/Queue

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function execute()
6868
*/
6969
protected function _isAllowed()
7070
{
71-
return $this->_authorization->isAllowed('Magento_Newsletter::queue');
71+
return ($this->_authorization->isAllowed('Magento_Newsletter::queue') &&
72+
$this->_authorization->isAllowed('Magento_Newsletter::template'));
7273
}
7374
}

0 commit comments

Comments
 (0)