18 if (!\
Bitrix\Main\Loader::includeModule(
'bitrix24'))
23 if (
Site\Type::getCurrentScopeId() != Type::SCOPE_CODE_KNOWLEDGE)
28 $availableCount = Feature::getVariable(
29 'landing_site_knowledge'
33 if (!isset($params[
'ID']) || $params[
'ID'] <= 0)
38 $res = Site::getList([
45 'limit' => $availableCount
47 while ($row = $res->fetch())
49 $allowedSiteIds[] = $row[
'ID'];
51 return in_array((
int)$params[
'ID'], $allowedSiteIds);