Fixed a bug where tree could potentially display system-level roots.
This commit is contained in:
parent
8868b960d0
commit
a610ac67e6
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ sub _traversePageTree {
|
|||
for ($i=1;$i<=$_[1];$i++) {
|
||||
$depth .= $spacer;
|
||||
}
|
||||
$a = WebGUI::SQL->read("select * from page where (pageId<2 or pageId>25) and parentId='$_[0]' order by sequenceNumber");
|
||||
$a = WebGUI::SQL->read("select * from page where (pageId=1 or pageId>999) and parentId='$_[0]' order by sequenceNumber");
|
||||
while (%page = $a->hash) {
|
||||
if (WebGUI::Privilege::canEditPage($page{pageId})) {
|
||||
$output .= $depth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue