Skip to content
Snippets Groups Projects
Commit 14b84b11 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1874564 by andypost: Fix access handling SystemMenuBlock::access().

parent e3d7216f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -22,14 +22,6 @@
*/
class SystemMenuBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account) {
$derivative = $this->getDerivativeId();
return ($account->isAuthenticated() || in_array($derivative, array('main', 'tools', 'footer')));
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment