Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
usermodel.php
1<?php
2
4
8
10{
11
12 public function getRoles(): array
13 {
14 //stub
15 return [];
16 }
17
18 public function getPermission(string $permissionId): ?int
19 {
20 //stub
21 return 0;
22 }
23
24 public function isSocNetAdmin(string $xmlId): bool
25 {
26 return (
27 $xmlId === Dictionary::CALENDAR_TYPE['group']
28 || $xmlId === Dictionary::CALENDAR_TYPE['user']
29 || \CCalendar::IsBitrix24()
30 )
31 && \CCalendar::IsSocNet()
32 && \CCalendar::IsSocnetAdmin()
33 ;
34 }
35
36 public function isExtranetUser(): bool
37 {
38 return
39 Loader::includeModule('intranet')
40 && !\Bitrix\Intranet\Util::isIntranetUser($this->userId)
41 ;
42 }
43}
getPermission(string $permissionId)
Definition usermodel.php:18