Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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\Controller\Landing
Definition
landing.php:8
Bitrix\Landing\Manager\getOption
static getOption($code, $default=null)
Definition
manager.php:160
Bitrix\Landing\Restriction\Rights
Definition
rights.php:8
Bitrix\Landing\Restriction\Rights\isAllowed
static isAllowed()
Definition
rights.php:13
Bitrix\Landing\Restriction\Site
Definition
site.php:15
Bitrix\Landing\Restriction
Definition
block.php:2
Bitrix
modules
landing
lib
restriction
rights.php
Создано системой
1.10.0