1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
user.php
См. документацию.
1<?php
2
3declare (strict_types=1);
4
5namespace Bitrix\Socialnetwork\Integration\Extranet;
6
7use Bitrix\Extranet\Service\ServiceContainer;
8use Bitrix\Main\Loader;
9
10class User
11{
12 public static function isCollaber(int $userId): bool
13 {
14 if (!Loader::includeModule('extranet'))
15 {
16 return false;
17 }
18
19 return
20 ServiceContainer::getInstance()
21 ->getCollaberService()
22 ->isCollaberById($userId)
23 ;
24 }
25}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static isCollaber(int $userId)
Определения user.php:12