- Модуль: controller
- Путь к файлу: ~/bitrix/modules/controller/lib/authgrant.php
- Класс: BitrixControllerAuthGrantTable
- Вызов: AuthGrantTable::getControllerMemberScopes
static function getControllerMemberScopes($controllerMemberId, $granteeUserId, $granteeGroups = array())
{
$result = array();
$grantList = self::getActiveForControllerMember($controllerMemberId, $granteeUserId, $granteeGroups);
while ($authGrant = $grantList->fetch())
{
$result[] = $authGrant;
}
$event = new BitrixMainEvent("controller", "OnControllerMemberScopes", array(&$result, $controllerMemberId, $granteeUserId, $granteeGroups));
$event->send();
return $result;
}