Skip to content

Commit 960899a

Browse files
committed
Add possibility to hide previous videoconferences even if recording is not enabled
1 parent d39344b commit 960899a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

plugin/bbb/lib/bbb.lib.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,37 @@ public function getCourseMeetings()
551551
}
552552
}
553553
}
554+
} else {
555+
$actionLinks = '';
556+
if ($this->isTeacher()) {
557+
if ($meetingDB['visibility'] == 0) {
558+
$actionLinks .= Display::url(
559+
Display::return_icon(
560+
'invisible.png',
561+
get_lang('MakeVisible'),
562+
array(),
563+
ICON_SIZE_MEDIUM
564+
),
565+
api_get_self().'?'.
566+
api_get_cidreq().
567+
'&action=publish&id='.$meetingDB['id']
568+
);
569+
} else {
570+
$actionLinks .= Display::url(
571+
Display::return_icon(
572+
'visible.png',
573+
get_lang('MakeInvisible'),
574+
array(),
575+
ICON_SIZE_MEDIUM
576+
),
577+
api_get_self().'?'.
578+
api_get_cidreq().
579+
'&action=unpublish&id='.$meetingDB['id']
580+
);
581+
}
582+
}
583+
$actionLinksArray[] = $actionLinks;
584+
$item['action_links'] = implode('<br />', $actionLinksArray);
554585
}
555586
//var_dump($recordArray);
556587
$item['show_links'] = implode('<br />', $recordArray);

0 commit comments

Comments
 (0)