2namespace Bitrix\Landing\Restriction;
4use \Bitrix\Bitrix24\Feature;
5use \Bitrix\Landing\Site;
6use \Bitrix\Landing\Site\Type;
18 if (!\
Bitrix\
Main\Loader::includeModule(
'bitrix24'))
23 if (
Site\Type::getCurrentScopeId() != Type::SCOPE_CODE_KNOWLEDGE)
28 $availableCount = Feature::getVariable(
29 'landing_site_knowledge'
38 $res = Site::getList([
45 'limit' => $availableCount
47 while ($row =
$res->fetch())
49 $allowedSiteIds[] = $row[
'ID'];
51 return in_array((
int)
$params[
'ID'], $allowedSiteIds);
63 if (\
Bitrix\
Main\Loader::includeModule(
'bitrix24'))
65 return Feature::isFeatureEnabled(
'landing_knowledge_group');
static isViewAllowed(string $code, array $params)
static isAllowedInGroup()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']