Work: Remove extra code to display warning message of protected Document - refs BT#20589

pull/4634/head
Christian 3 years ago
parent bcb95c7e16
commit d9f6fdc67d
  1. 5
      main/document/showinframes.php

@ -99,11 +99,6 @@ $is_visible = DocumentManager::check_visibility_tree(
false
);
if (!$is_allowed_to_edit && !$is_visible) {
echo Display::return_message(get_lang('ProtectedDocument'), 'warning');
api_not_allowed(false, ' ');
}
$pathinfo = pathinfo($header_file);
$playerSupportedFiles = ['mp3', 'mp4', 'ogv', 'ogg', 'flv', 'm4v', 'webm', 'wav'];
$playerSupported = false;

Loading…
Cancel
Save