Documentation

CAdvContract::GetUserPermissionArray

text
CAdvContract::GetUserPermissionArray(
 int USER_ID=false
);

The method GetUserPermissionArray returns the array of a specified user permissions by all the contracts.

Parameters

USER_ID
The user ID. If it is not specified, the current user ID is used.

Example

The following is an example of an array returned by the method

Array
(
    [34] => Array
        (
            [0] => ADD
            [1] => VIEW
            [2] => EDIT
        )
    [52] => Array
        (
            [0] => ADD
            [1] => VIEW
        )
)

The array index is the contract ID.
The value is the array of permissions for this contract.
© «Bitrix24», 2001-2024