Skip to content

Commit

Permalink
#85 mentiones a problem in which top level directories are not shown …
Browse files Browse the repository at this point in the history
…anymore in case of access to their subdirs is restricted for the current user. Reason is a recursive check of access to subdirs when their parent should be shown, for which nobody seems to know the reason currently. This commit reverts that behaviour.

#85 (comment)
  • Loading branch information
ams-tschoening committed Jul 14, 2019
1 parent ebf6208 commit 2213260
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ function showDirFiles($svnrep, $subs, $level, $limit, $rev, $peg, $listing, $ind
$isDirString = ($isDir) ? 'isdir=1&' : '';

// Only list files/directories that are not designated as off-limits
$access = ($isDir) ? $rep->hasReadAccess($path.$file, true)
: $accessToThisDir;
$access = ($isDir) ? $rep->hasReadAccess($path.$file, false)
: $accessToThisDir;

if ($access) {
$listvar = &$listing[$index];
$listvar['rowparity'] = $index % 2;
Expand Down

0 comments on commit 2213260

Please sign in to comment.