Skip to content

Commit

Permalink
closes laminas#202
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Smith <[email protected]>

Signed-off-by: Joey Smith <[email protected]>
  • Loading branch information
tyrsson committed Apr 24, 2023
1 parent b7e66e1 commit 8b0ebd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Helper/Navigation/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ protected function parseContainer(&$container = null)
* Rules:
* - If a page is not visible it is not accepted, unless RenderInvisible has
* been set to true
* - If $useAcl is true (default is true):
* - Page is accepted if listener returns true, otherwise false
* - If Acl instance has been set hasAcl() returns true and isAllowed() is called
* - If page is accepted and $recursive is true, the page
* will not be accepted if it is the descendant of a non-accepted page
*
Expand All @@ -322,7 +321,7 @@ public function accept(AbstractPage $page, $recursive = true)

if (! $page->isVisible(false) && ! $this->getRenderInvisible()) {
$accept = false;
} elseif ($this->getUseAcl()) {
} elseif ($this->hasAcl()) {
$acl = $this->getAcl();
$role = $this->getRole();
$params = ['acl' => $acl, 'page' => $page, 'role' => $role];
Expand Down

0 comments on commit 8b0ebd6

Please sign in to comment.