Skip to content

Commit

Permalink
Merge pull request #16 from GmanG/patch-6
Browse files Browse the repository at this point in the history
removed trailing slash before the before method names
  • Loading branch information
colinmurphy committed Apr 7, 2018
2 parents af4e882 + 96ceb7f commit 734e6f6
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -109,8 +109,8 @@ This is checked in the observer **Mage_Adminhtml_Controller_Action->preDispatch*

if ($this->getRequest()->isDispatched()
&& $this->getRequest()->getActionName() !== 'denied'
&& !$this->\_isAllowed()) {
$this->\_forward('denied');
&& !$this->_isAllowed()) {
$this->_forward('denied');
$this->setFlag('', self::FLAG_NO_DISPATCH, true);
return $this;
}
Expand All @@ -119,7 +119,7 @@ The *_isAllowed* method is set to true but is overridden by the controller.

So in our index controller we add the following:

protected function \_isAllowed()
protected function _isAllowed()
{
Mage::getSingleton('admin/session')->isAllowed('colin_slider/slider');
}
Expand Down

0 comments on commit 734e6f6

Please sign in to comment.