• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/rightsmanager.php
  • Класс: BitrixReportRightsManager
  • Вызов: RightsManager::isOwner
private function isOwner($reportId)
{
	$reportId = intval($reportId);

	$hasReport = ReportTable::getCount(
		array('=ID' => $reportId, '=CREATED_BY' => $this->userId));

	if($hasReport)
		return true;
	else
		return false;
}