• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/userpermissions.php
  • Класс: BitrixRpaUserPermissions
  • Вызов: UserPermissions::canViewType
public function canViewType(int $typeId): bool
{
	if ($this->isAccessDeniedToEverything())
	{
		return false;
	}
	if(static::canViewAnyType())
	{
		return true;
	}

	return $this->canPerform(self::ENTITY_TYPE, $typeId, self::ACTION_VIEW);
}