Commit 14b84b11 authored by webchick's avatar webchick

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

parent e3d7216f
......@@ -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}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment