public function init()
 {
     parent::init();
     // check permissions
     $notRestrictedActions = array("get-image-thumbnail", "get-video-thumbnail", "get-document-thumbnail");
     if (!in_array($this->getParam("action"), $notRestrictedActions)) {
         $this->checkPermission("assets");
     }
     $this->_assetService = new Asset\Service($this->getUser());
 }
 public function init()
 {
     parent::init();
     // check permissions
     $notRestrictedActions = array();
     if (!in_array($this->getParam("action"), $notRestrictedActions)) {
         $this->checkPermission("objects");
     }
     $this->_objectService = new Object\Service($this->getUser());
 }
 public function init()
 {
     parent::init();
     // check permissions
     $notRestrictedActions = array("doc-types");
     if (!in_array($this->getParam("action"), $notRestrictedActions)) {
         $this->checkPermission("documents");
     }
     $this->_documentService = new Document\Service($this->getUser());
 }