1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GetRoleTrait.php
См. документацию.
1<?php
2
3namespace Bitrix\SocialNetwork\Collab\Access\Rule\Trait;
4
5use Bitrix\Socialnetwork\Collab\Registry\CollabRegistry;
6
8{
9 protected static array $roles = [];
10
11 protected function getUserRole(int $collabId, int $userId): string
12 {
13 if (!isset(static::$roles[$collabId]))
14 {
15 static::$roles[$collabId] = CollabRegistry::getInstance()->get($collabId)?->getMemberIdsWithRole();
16 }
17
18 return static::$roles[$collabId][$userId] ?? '';
19 }
20}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
getUserRole(int $collabId, int $userId)
Определения GetRoleTrait.php:11