24 $parameters[
'listId'] = (int)$parameters[
'listId'];
25 $parameters[
'elementId'] = (int)$parameters[
'elementId'];
27 if($parameters[
'listId'] == 0 || $parameters[
'elementId'] == 0)
30 $userPermission = \CListPermissions::CheckAccess(
32 $parameters[
"IBLOCK_TYPE_ID"],
35 if($userPermission < 0)
39 else if( $userPermission < \CListPermissions::CAN_READ
40 && !\CIBlockElementRights::UserHasRightTo($parameters[
'listId'], $parameters[
'elementId'],
"element_read"))