3namespace Bitrix\SocialNetwork\Collab\Access\Rule\Trait;
5use Bitrix\Socialnetwork\Collab\Registry\CollabRegistry;
9 protected static array $roles = [];
13 if (!isset(static::$roles[$collabId]))
15 static::$roles[$collabId] = CollabRegistry::getInstance()->get($collabId)?->getMemberIdsWithRole();
18 return static::$roles[$collabId][
$userId] ??
'';
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
getUserRole(int $collabId, int $userId)