Work: Fix display warning message of protected Document - refs BT#20589

pull/4634/head
Christian 3 years ago
parent 249d933f46
commit bcb95c7e16
  1. 6
      main/document/showinframes.php

@ -255,6 +255,12 @@ if ($originIsLearnpath) {
Display::display_header();
}
if (!$is_allowed_to_edit && !$is_visible) {
echo Display::return_message(get_lang('ProtectedDocument'), 'warning');
Display::display_footer();
exit;
}
$file_url = api_get_path(WEB_COURSE_PATH).$courseInfo['path'].'/document'.$header_file;
$file_url_web = $file_url.'?'.api_get_cidreq();
if ($playerSupported) {

Loading…
Cancel
Save