public function init()
{
parent::init();
// check permissions
$notRestrictedActions = ["doc-types"];
if (!in_array($this->getParam("action"), $notRestrictedActions)) {
$this->checkPermission("documents");
}
$this->_documentService = new Document\Service($this->getUser());
}