protected function innerGet($ID, &$errors) { if (!CCrmProduct::CheckReadPermission($ID)) { $errors[] = 'Access denied.'; return false; } $result = CCrmCatalog::GetByID($ID); if (!is_array($result)) { $errors[] = 'Catalog is not found.'; return null; } return $result; }