Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
14b84b11
Commit
14b84b11
authored
Dec 27, 2013
by
webchick
Browse files
Issue
#1874564
by andypost: Fix access handling SystemMenuBlock::access().
parent
e3d7216f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/system/lib/Drupal/system/Plugin/Block/SystemMenuBlock.php
View file @
14b84b11
...
...
@@ -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}
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment