[svn r18363] fixes problem of hidden documents embedded in Web pages that can't be seen by students

skala
Juan Carlos Raña 16 years ago
parent e7cddbfe05
commit f7f22b4bc2
  1. 2
      main/inc/lib/document.lib.php

@ -1038,7 +1038,7 @@ class DocumentManager
//note the extra / at the end of doc_path to match every path in the
// document table that is part of the document path
$sql = "SELECT path FROM $docTable d, $propTable ip " .
"where d.id=ip.ref AND ip.tool='".TOOL_DOCUMENT."' AND visibility=0 AND ".
"where d.id=ip.ref AND ip.tool='".TOOL_DOCUMENT."' AND d.filetype='file' AND visibility=0 AND ".
"locate(concat(path,'/'),'".$doc_path."/')=1";
$result = api_sql_query($sql,__FILE__,__LINE__);
if (Database::num_rows($result) > 0){

Loading…
Cancel
Save