public function init() { parent::init(); // check permissions $notRestrictedActions = []; if (!in_array($this->getParam("action"), $notRestrictedActions)) { $this->checkPermission("documents"); } }