Skip to content

Commit

Permalink
Simplify access check
Browse files Browse the repository at this point in the history
Co-authored-by: Leo Feyer <github@contao.org>
  • Loading branch information
Toflar and leofeyer committed Sep 29, 2021
1 parent 66efbff commit fad0390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-bundle/src/Resources/contao/classes/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ public static function addPagesBreadcrumb($strKey='tl_page_node')
$arrIds[] = $intId;

// No link for the active page or pages in the trail
if ($objPage->id == $intNode || (!$objUser->isAdmin && !$objUser->hasAccess($objPage->id, 'pagemounts')))
if ($objPage->id == $intNode || !$objUser->hasAccess($objPage->id, 'pagemounts'))
{
$arrLinks[] = self::addPageIcon($objPage->row(), '', null, '', true) . ' ' . $objPage->title;
}
Expand Down

0 comments on commit fad0390

Please sign in to comment.