public function canDeleteRecord($dataRec) { if ($dataRec['system'] == 1) { return false; } else { return parent::canDeleteRecord($dataRec); } }