Plugin: BBB: Fix password generation from meetings of courses/sessions that have been removed in the meantime - refs #3143

pull/3147/head
Yannick Warnier 6 years ago
parent 79be5fca7c
commit 04fe918a51
  1. 18
      plugin/bbb/lib/bbb.lib.php

@ -927,10 +927,22 @@ class bbb
$courseCode = $courseInfo['code'];
}
if ($manager) {
$pass = $this->getModMeetingPassword($courseCode);
if (!empty($courseId) && empty($courseInfo)) {
// If the course cannot be found (i.e. been deleted), then
// the password cannot be generated. Use the one from the
// database (as we need one further down)
if ($manager) {
$pass = $meetingDB['moderator_pw'];
} else {
$pass = $meetingDB['attendee_pw'];
}
} else {
$pass = $this->getUserMeetingPassword($courseCode);
// Otherwise just generate a normal password
if ($manager) {
$pass = $this->getModMeetingPassword($courseCode);
} else {
$pass = $this->getUserMeetingPassword($courseCode);
}
}
$meetingBBB = $this->getMeetingInfo(

Loading…
Cancel
Save