1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
rights.php
См. документацию.
1
<?php
2
namespace
Bitrix\Landing\Restriction;
3
4
use \Bitrix\Bitrix24\Feature;
5
use \Bitrix\Landing\Manager;
6
7
class
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
}
Bitrix\Landing\Manager\getOption
static getOption($code, $default=null)
Определения
manager.php:160
Bitrix\Landing\Restriction\Rights
Определения
rights.php:8
Bitrix\Landing\Restriction\Rights\isAllowed
static isAllowed()
Определения
rights.php:13
Bitrix\Landing\Site
Определения
cookies.php:2
Bitrix\Landing
Определения
agent.php:3
Bitrix\Main
Bitrix
bitrix
modules
landing
lib
restriction
rights.php
Создано системой
1.14.0