protected function _preDispatch($action) { parent::_preDispatch($action); if (!SimplePortal_Static::hasPermission('useCreateNew')) { return $this->responseNoPermission(); } }
protected function _preDispatch($action) { parent::_preDispatch($action); if (!SimplePortal_Static::getItemModel()->canPromoteItem(null, array())) { throw $this->getNoPermissionResponseException(); } }