Exemplo n.º 1
0
 /**
  * @see OW_ActionController::init()
  *
  */
 public function init()
 {
     parent::init();
     if (!OW::getUser()->isAuthenticated()) {
         throw new Redirect404Exception();
     }
     $this->registerAction('reset', array($this, 'resetCustomization'));
     $this->componentService = BOL_ComponentEntityService::getInstance();
 }
 /**
  * @see OW_ActionController::init()
  *
  */
 public function init()
 {
     parent::init();
     $this->registerAction('allowCustomize', array($this, 'allowCustomize'));
     if (!OW::getUser()->isAdmin()) {
         throw new Redirect404Exception();
     }
     $this->componentService = BOL_ComponentAdminService::getInstance();
 }