Bitrix Site Manager

CIBlock::GetPermission

string
CIBlock::GetPermission(
 int IBLOCK_ID
);

Returns the current user permissions to access the block identified by the IBLOCK_ID.

Parameters

ParameterDescription
IBLOCK_ID Information block ID.

Return Values

Returns a character describing the access permissions:

See Also

  • GetGroupPermissions

    Example


    <?
    $iblock_permission = CIBlock::GetPermission($id);
    if ($iblock_permission<"X")
        return false;
    ?>