Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
rights.php
1<?php
3
4use \Bitrix\Bitrix24\Feature;
5use \Bitrix\Landing\Manager;
6
7class Rights
8{
13 public static function isAllowed(): bool
14 {
15 if (\Bitrix\Landing\Site\Type::getCurrentScopeId() === 'GROUP')
16 {
17 return true;
18 }
19
20 if (Manager::getOption('permissions_available', 'N') == 'Y')
21 {
22 return true;
23 }
24
25 if (\Bitrix\Main\Loader::includeModule('bitrix24'))
26 {
27 return Feature::isFeatureEnabled('landing_permissions_available');
28 }
29
30 return true;
31 }
32}
static getOption($code, $default=null)
Definition manager.php:160