From def27d021ba728d0eb7e93e741185a95c61d25ab Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 8 Jul 2015 11:43:03 +0200 Subject: [PATCH] Remove visibility condition see #7351 --- main/document/document.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main/document/document.php b/main/document/document.php index 82f9e3672f..8741730855 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -674,18 +674,14 @@ if (isset($_GET['curdirpath']) && // Is the document tool visible? // Check whether the tool is actually visible -$table_course_tool = Database::get_course_table(TABLE_TOOL_LIST); +/*$table_course_tool = Database::get_course_table(TABLE_TOOL_LIST); $course_id = api_get_course_int_id(); $tool_sql = 'SELECT visibility FROM '.$table_course_tool.' WHERE c_id = '.$course_id.' AND name = "'.TOOL_DOCUMENT.'" LIMIT 1'; $tool_result = Database::query($tool_sql); $tool_row = Database::fetch_array($tool_result); -$tool_visibility = $tool_row['visibility']; - -if ($tool_visibility == '0' && $groupId == '0' && !($is_allowed_to_edit || $group_member_with_upload_rights)) { - api_not_allowed(true); -} +$tool_visibility = $tool_row['visibility'];*/ $htmlHeadXtra[] = '