Skip to content

Commit

Permalink
Work: Remove extra code to display warning message of protected Docum…
Browse files Browse the repository at this point in the history
…ent - refs BT#20589
  • Loading branch information
cfasanando committed Mar 8, 2023
1 parent bcb95c7 commit d9f6fdc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main/document/showinframes.php
Expand Up @@ -99,11 +99,6 @@
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;
Expand Down

0 comments on commit d9f6fdc

Please sign in to comment.