Copy this change to 3.0
> commit 30700cb8de
> Author: Bharat Mediratta <bharat@menalto.com>
> Date: Sat Nov 27 18:35:11 2010 -0800
>
> Oops, add in security. Only show viewable children.
This commit is contained in:
parent
bfda243ce0
commit
0f6fbf7bb2
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<? // Then take all of that album's children and put them next on the stack. ?>
|
<? // Then take all of that album's children and put them next on the stack. ?>
|
||||||
<? $tmp = array(); ?>
|
<? $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) ?>
|
<? $tmp[] = array($level + 1, $child) ?>
|
||||||
<? endforeach ?>
|
<? endforeach ?>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user