1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
AccessService.php
См. документацию.
1<?php
2
4
8
10{
11 public function checkUserDialogAccess(int $targetUserId, int $userId): Result
12 {
13 return User::getInstance($targetUserId)->checkAccess($userId);
14 }
15
16 public function checkChatAccess(int $chatId, int $userId): Result
17 {
18 return Chat::getInstance($chatId)->checkAccess($userId);
19 }
20}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static getInstance($userId=null)
Определения user.php:45
checkUserDialogAccess(int $targetUserId, int $userId)
Определения AccessService.php:11
checkChatAccess(int $chatId, int $userId)
Определения AccessService.php:16
static getInstance()
Определения application.php:98
Определения result.php:20