Documentation

checkExternalAuthId

boolean public static
\Bitrix\Extranet\Util::checkExternalAuthId(
 string $authId
);

Static method returns true when user has authentication type that can match to the current extranet user (i. e. authentication types with exception of email, replica, bot, imconnector).

Parameters

ParameterDescriptionVersion
$authIdAuthentication type

Examples

$arResult["User"]["IS_EXTRANET"] = (
    empty($arResult["User"]['UF_DEPARTMENT'][0])
    && \Bitrix\Main\Loader::includeModule('extranet')
    && \Bitrix\Extranet\Util::checkExternalAuthId($arResult["User"]['EXTERNAL_AUTH_ID'])
);


© «Bitrix24», 2001-2024
Up