/** * @throws ForbiddenException * @throws Zend_Controller_Exception * @param string $privilege * @param \Application\Model\ModelAbstract $resource */ public function direct($privilege, $resource) { if ($resource instanceof App_ListFilter && $resource->getSortingField()) { $priv = $privilege . '_' . $resource->getSortingField(); if (!$this->_privilegeExists($priv, $resource)) { $priv = $privilege . '_default'; } $this->_allowed($priv, $resource); } }