Fixed a bug where all pages were shown regardless of privs
This commit is contained in:
parent
164ce6afcc
commit
6ac6a952f9
1 changed files with 2 additions and 2 deletions
|
|
@ -333,10 +333,10 @@ sub build {
|
|||
|
||||
# Do the user-dependent checks (which cannot be cached globally)
|
||||
foreach my $pageData (@page_loop) {
|
||||
$pageData->{"page.isViewable"} = WebGUI::Page::canView($pageData->{'pageId'});
|
||||
$pageData->{"page.isViewable"} = WebGUI::Page::canView($pageData->{'page.pageId'});
|
||||
|
||||
# Check privileges
|
||||
unless (! $pageData->{"page.isViewable"} && ! $self->{_showUnprivilegedPages}) {
|
||||
if ($pageData->{"page.isViewable"} || $self->{_showUnprivilegedPages}) {
|
||||
push (@{$var->{page_loop}}, $pageData);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue