1
0

Oops, add in security. Only show viewable children.

This commit is contained in:
Bharat Mediratta 2010-11-28 10:35:11 +08:00 committed by kandsten
parent 879fc2fbf1
commit 37335dec31

View File

@ -10,7 +10,7 @@
<? // Then take all of that album's children and put them next on the stack. ?>
<? $tmp = array(); ?>
<? foreach ($album->children(null, null, array(array("type", "=", "album"))) as $child): ?>
<? foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child): ?>
<? $tmp[] = array($level + 1, $child) ?>
<? endforeach ?>