Skip to content

Commit 21339bc

Browse files
Rizwan KhanRizwan Khan
authored andcommitted
AC-11453: newsletter templates and queue validations
1 parent b08b7ea commit 21339bc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,12 @@ public function execute()
5959

6060
$this->_view->renderLayout();
6161
}
62+
63+
/**
64+
* @return bool
65+
*/
66+
protected function _isAllowed()
67+
{
68+
return $this->_authorization->isAllowed('Magento_Newsletter::queue');
69+
}
6270
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,12 @@ public function execute()
6767

6868
$this->_view->renderLayout();
6969
}
70+
71+
/**
72+
* @return bool
73+
*/
74+
protected function _isAllowed()
75+
{
76+
return $this->_authorization->isAllowed('Magento_Newsletter::template');
77+
}
7078
}

0 commit comments

Comments
 (0)