• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/base/baseobject.php
  • Класс: BitrixVoteBaseBaseObject
  • Вызов: BaseObject::canRead
public function canRead($userId)
{
	if ($userId == $this->getUser()->getId())
	{
		$right = CMain::getUserRight("vote");
	}
	else
	{
		$groups = self::loadUserGroups($userId);
		$right = CMain::getUserRight("vote", $groups);
	}
	return ($right >= "R");
}