20 $types = \Bitrix\Main\UserTable::getExternalUserTypes();
21 if (empty($skipTypes))
26 $types = array_filter($types,
function($authId) use ($skipTypes) {
27 return !in_array($authId, $skipTypes,
true);
35 $emptyValue = serialize([]);
36 $emptyValue2 = serialize([0]);
42 ((%s IS NOT NULL AND %s != \'' . $emptyValue .
'\' AND %s != \
'' . $emptyValue2 .
'\') AND
43 (%s IS NULL OR %s NOT IN (\
'' . implode(
'\', \
'', self::filterExternalUserTypes([
'bot'])) .
'\')))
48 [
'UF_DEPARTMENT',
'UF_DEPARTMENT',
'UF_DEPARTMENT',
'EXTERNAL_AUTH_ID',
'EXTERNAL_AUTH_ID',
'EXTERNAL_AUTH_ID'],
49 [
'values' => [
'N',
'Y']]
50 ))->configureValueType(BooleanField::class)
53 return array_merge(parent::getMap(), $additionalFields);