public function init()
 {
     parent::init();
     if ($this->user->role != Users_Model_User::ROLE_ADMIN && $this->underMaintenance) {
         return $this->_redirectForMaintenance();
     }
 }
 public function init()
 {
     parent::init();
     if ($this->user->role != Users_Model_User::ROLE_ADMIN && $this->underMaintenance) {
         return $this->_redirectForMaintenance();
     }
     if (!$this->_config->environment->registrations_enabled) {
         $this->_helper->FlashMessenger->addMessage($this->view->translate('Sorry, registrations are currently disabled'));
         return $this->_redirect('');
     }
 }