Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
admin_toolbar
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
admin_toolbar
Commits
bcef584b
Commit
bcef584b
authored
1 year ago
by
Jürgen Haas
Committed by
Jakob P
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3427112
: Do not checkNamedRoute if route_name is NULL
parent
d9d2fd11
No related branches found
No related tags found
1 merge request
!73
Issue #3427112: Do not checkNamedRoute if route_name is NULL
Pipeline
#242191
passed with warnings
8 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.module
+1
-1
1 addition, 1 deletion
...ks_access_filter/admin_toolbar_links_access_filter.module
with
1 addition
and
1 deletion
admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.module
+
1
−
1
View file @
bcef584b
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment