Hope to solve ACL check problem

This commit is contained in:
Pavel Brych
2012-02-09 12:05:22 +01:00
parent ff0348f9eb
commit 31bcb667b3

View File

@@ -613,7 +613,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
if (!$params['direct']) { if (!$params['direct']) {
// exclude prohibited media files via ACLs // exclude prohibited media files via ACLs
$mid = str_replace('/', ':', substr($filepath, strlen($this->mediadir))); $mid = str_replace('/', ':', substr($filepath, strlen($this->mediadir)));
$perm = auth_quickaclcheck($mid); $perm = auth_quickaclcheck(ltrim($mid,":"));
if ($perm < AUTH_READ) continue; if ($perm < AUTH_READ) continue;
} else { } else {
if (!is_readable($filepath)) continue; if (!is_readable($filepath)) continue;