Remove visibility condition see #7351

1.10.x
Julio Montoya 10 years ago
parent ba7eee3d27
commit def27d021b
  1. 8
      main/document/document.php

@ -674,18 +674,14 @@ if (isset($_GET['curdirpath']) &&
// Is the document tool visible? // Is the document tool visible?
// Check whether the tool is actually 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(); $course_id = api_get_course_int_id();
$tool_sql = 'SELECT visibility FROM '.$table_course_tool.' $tool_sql = 'SELECT visibility FROM '.$table_course_tool.'
WHERE c_id = '.$course_id.' AND name = "'.TOOL_DOCUMENT.'" WHERE c_id = '.$course_id.' AND name = "'.TOOL_DOCUMENT.'"
LIMIT 1'; LIMIT 1';
$tool_result = Database::query($tool_sql); $tool_result = Database::query($tool_sql);
$tool_row = Database::fetch_array($tool_result); $tool_row = Database::fetch_array($tool_result);
$tool_visibility = $tool_row['visibility']; $tool_visibility = $tool_row['visibility'];*/
if ($tool_visibility == '0' && $groupId == '0' && !($is_allowed_to_edit || $group_member_with_upload_rights)) {
api_not_allowed(true);
}
$htmlHeadXtra[] = '<script> $htmlHeadXtra[] = '<script>
function confirmation (name) { function confirmation (name) {

Loading…
Cancel
Save