Minor - Plugins - Zoom - fix add/delete recording to session/group

BT#17288
pull/3446/head
Julio Montoya 5 years ago
parent 2bc2fd7aab
commit a6723de22a
  1. 20
      plugin/zoom/lib/ZoomPlugin.php

@ -610,6 +610,19 @@ class ZoomPlugin extends Plugin
if (false === curl_exec($curl)) {
throw new Exception("curl_exec failed: ".curl_error($curl));
}
$sessionId = 0;
$session = $meeting->getSession();
if (null !== $session) {
$sessionId = $session->getId();
}
$groupId = 0;
$group = $meeting->getGroup();
if (null !== $group) {
$groupId = $group->getIid();
}
$newPath = handle_uploaded_document(
$courseInfo,
[
@ -622,19 +635,20 @@ class ZoomPlugin extends Plugin
'/',
api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document',
api_get_user_id(),
0,
$groupId,
null,
0,
'',
true,
false,
null,
$meeting->getSession()->getId(),
$sessionId,
true
);
fclose($tmpFile);
if (false === $newPath) {
throw new Exception('could not handle uploaded document');
throw new Exception('Could not handle uploaded document');
}
}

Loading…
Cancel
Save