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