getActiveForControllerMember
\Bitrix\Main\DB\Result public static \Bitrix\Controller\AuthGrantTable::getActiveForControllerMember( integer $controllerMemberId, integer $granteeUserId, array$granteeGroups = array() );
Static method returns list of access permissions granted to the user ($granteeUserId
) at the site ($controllerMemberId
). When $granteeGroups
is specified, list of groups will also be checked.
Parameters
Parameter | Description | Version |
---|---|---|
$controllerMemberId | ID for site connected to the controller. | |
$userId | User ID. | |
$granteeGroups | Optional array of user groups. |
Exceptions
- ArgumentException (
\Bitrix\Main\ArgumentException
)
Example
© «Bitrix24», 2001-2024