protected function innerDelete($ID, &$errors) { if (!CCrmProduct::CheckDeletePermission($ID)) { $errors[] = 'Access denied.'; return false; } $result = CCrmProductSection::Delete($ID); if ($result !== true) { $errors[] = CCrmProductSection::GetLastError(); } return $result; }