Fixed a bug where it could potentially have displayed system level roots.
This commit is contained in:
parent
a610ac67e6
commit
5c090ae981
1 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,8 @@ sub _replacement {
|
|||
}
|
||||
$temp = '<span class="horizontalMenu">';
|
||||
$first = 1;
|
||||
$sth = WebGUI::SQL->read("select menuTitle,urlizedTitle,pageId from page where parentId=0 and (pageId=1 or pageId>25) order by sequenceNumber");
|
||||
$sth = WebGUI::SQL->read("select menuTitle,urlizedTitle,pageId from page where parentId=0
|
||||
and (pageId=1 or pageId>999) order by sequenceNumber");
|
||||
while (@data = $sth->array) {
|
||||
if (WebGUI::Privilege::canViewPage($data[2])) {
|
||||
if ($first) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue