- Модуль: webdav
- Путь к файлу: ~/bitrix/modules/webdav/lib/invitedispatcher.php
- Класс: BitrixWebdavInviteDispatcher
- Вызов: InviteDispatcher::processActionDisconnect
public function processActionDisconnect(array $params)
{
$this->params = $params;
$attachSectionData = $this->getSectionDataByAttachObject($params['attachObject']);
$targetSectionData = $this->getSectionDataByUserId($params['attachToUserId']);
$targetSectionData['IBLOCK_SECTION_ID'] = $targetSectionData['SECTION_ID'];
$linkData = array(
'ID' => $attachSectionData['SECTION_ID'],
'IBLOCK_ID' => $attachSectionData['IBLOCK_ID'],
'INVITE_USER_ID' => $params['attachToUserId'],
);
$successDelete = CWebDavSymlinkHelper::deleteSymLinkSection($targetSectionData, $linkData, $params['attachObject']['type']);
if($successDelete)
{
return $this->sendJsonResponse(array(
'status' => self::STATUS_SUCCESS,
));
}
return $this->sendJsonResponse(array(
'status' => self::STATUS_ERROR,
));
}