Битрикс24
0
Вклад в тег
global $USER;
$USER->Authorize(ID_USER_TICKETS);
if($ElemID){
try{
$oTaskItem = new CTaskItem($task_id, ID_USER_TICKETS);
$rs = $oTaskItem->Update(
array(
"UF_TASK_WEBDAV_FILES" => array($ElemID)
),
array(
"USER_ID" => ID_USER_TICKETS,
"CHECK_RIGHTS_ON_FILES" => false
)
);
}
catch (TasksException $e) {
pr($e,true);
return;
}
}
$USER->Logout();