/** * @see parent::checkCoded() */ function checkCoded() { if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) { $this->loadRefCodageCCAM(); if ($this->_ref_codage_ccam->_id && $this->_ref_codage_ccam->locked && !CModule::getCanDo('dPpmsi')->edit) { return "Codage CCAM verrouillé, impossible de modifier l'acte"; } } return parent::checkCoded(); }