From d9f6fdc67defc9b378e5223e78cf2797b40e4057 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 8 Mar 2023 07:28:37 -0500 Subject: [PATCH] Work: Remove extra code to display warning message of protected Document - refs BT#20589 --- main/document/showinframes.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main/document/showinframes.php b/main/document/showinframes.php index 1b1f025fea..642283d694 100755 --- a/main/document/showinframes.php +++ b/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;