...Человеческий поиск в разработке...
- Модуль: 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; }