CommentConnector::canUpdate

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CommentConnector
  4. canUpdate
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/disk/commentconnector.php
  • Класс: Bitrix\Crm\Integration\Disk\CommentConnector
  • Вызов: CommentConnector::canUpdate
public function canUpdate($userId)
{
	$timelineBinding = TimelineBindingTable::getList(
		array(
			"filter" => array('OWNER_ID' => $this->entityId)
		)
	);

	$isAllowed = false;
	while(!$isAllowed && ($bind = $timelineBinding->fetch()))
	{
		$isAllowed = EntityAuthorization::checkUpdatePermission($bind['ENTITY_TYPE_ID'], $bind['ENTITY_ID']);
	}

	return $isAllowed;
}

Добавить комментарий