Skip to content
Snippets Groups Projects
Commit bcef584b authored by Jürgen Haas's avatar Jürgen Haas Committed by Jakob P
Browse files

Issue #3427112: Do not checkNamedRoute if route_name is NULL

parent d9d2fd11
No related branches found
No related tags found
1 merge request!73Issue #3427112: Do not checkNamedRoute if route_name is NULL
Pipeline #242191 passed with warnings
...@@ -90,7 +90,7 @@ function admin_toolbar_links_access_filter_filter_non_accessible_links(array &$i ...@@ -90,7 +90,7 @@ function admin_toolbar_links_access_filter_filter_non_accessible_links(array &$i
} }
// Check, if user has access rights to the route. // Check, if user has access rights to the route.
if (!$access_manager->checkNamedRoute($route_name, $route_params)) { if ($route_name === NULL || !$access_manager->checkNamedRoute($route_name, $route_params)) {
unset($items[$menu_id]); unset($items[$menu_id]);
} }
else { else {
......
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