public function preDispatch()
    {
        parent::preDispatch();

        if (!Mage::helper('sheep_debug')->isAllowed()) {
            $this->setFlag('', 'no-dispatch', true);
            $this->getResponse()->setHttpResponseCode(404);
        }
    }
public function preDispatch()
    {
        parent::preDispatch();

        if (!Mage::helper('sheep_debug')->isAllowed()) {
            $this->setFlag('', 'no-dispatch', true);
            $this->getResponse()->setHttpResponseCode(404);
        }
    }
public function preDispatch ( ) { parent :: preDispatch ( ) ; if ( ! Mage :: helper ( 'sheep_debug' ) -> isAllowed ( ) ) { $ this -> setFlag ( '' , 'no-dispatch' , true ) ; $ this -> getResponse ( ) -> setHttpResponseCode ( 404 ) ; } }
Prevent access to our access if toolbar is disabled

@throws Zend_Controller_Response_Exception
Prevent access to our access if toolbar is disabled