Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
UserExtranet.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Entity\User
;
4
5
class
UserExtranet
extends
User
6
{
7
protected
function
checkAccessWithoutCaching
(
User
$otherUser): bool
8
{
9
if
(!static::$moduleManager::isModuleInstalled(
'intranet'
))
10
{
11
return
$this->
hasAccessBySocialNetwork
($otherUser->
getId
());
12
}
13
14
if
($otherUser->
isBot
())
15
{
16
return
true
;
17
}
18
19
if
($this->
isNetwork
() && !$otherUser->
isExtranet
())
20
{
21
return
true
;
22
}
23
24
$inGroup = \Bitrix\Im\Integration\Socialnetwork\Extranet::isUserInGroup($this->
getId
(), $otherUser->
getId
());
25
if
($inGroup)
26
{
27
return
true
;
28
}
29
30
return
false
;
31
}
32
}
Bitrix\Im\V2\Entity\User\UserExtranet
Definition
UserExtranet.php:6
Bitrix\Im\V2\Entity\User\UserExtranet\checkAccessWithoutCaching
checkAccessWithoutCaching(User $otherUser)
Definition
UserExtranet.php:7
Bitrix\Im\V2\Entity\User\User
Definition
User.php:24
Bitrix\Im\V2\Entity\User\User\getId
getId()
Definition
User.php:274
Bitrix\Im\V2\Entity\User\User\isBot
isBot()
Definition
User.php:495
Bitrix\Im\V2\Entity\User\User\hasAccessBySocialNetwork
hasAccessBySocialNetwork(int $idOtherUser)
Definition
User.php:230
Bitrix\Im\V2\Entity\User\User\isNetwork
isNetwork()
Definition
User.php:490
Bitrix\Im\V2\Entity\User\User\isExtranet
isExtranet()
Definition
User.php:475
Bitrix\Im\V2\Entity\User
modules
im
lib
V2
Entity
User
UserExtranet.php
Создано системой
1.10.0