Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
4fe6358e
Commit
4fe6358e
authored
11 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2187991
by jessebeach, dawehner: Toolbar access checking points to wrong namespace.
parent
0d70b8be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/toolbar/lib/Drupal/toolbar/Tests/ToolbarAdminMenuTest.php
+13
-0
13 additions, 0 deletions
...toolbar/lib/Drupal/toolbar/Tests/ToolbarAdminMenuTest.php
core/modules/toolbar/toolbar.routing.yml
+1
-1
1 addition, 1 deletion
core/modules/toolbar/toolbar.routing.yml
with
14 additions
and
1 deletion
core/modules/toolbar/lib/Drupal/toolbar/Tests/ToolbarAdminMenuTest.php
+
13
−
0
View file @
4fe6358e
...
...
@@ -440,6 +440,19 @@ function testLocaleTranslationSubtreesHashCacheClear() {
$this
->
assertNotEqual
(
$original_subtree_hash
,
$new_subtree_hash
,
'The user-specific subtree menu hash has been updated.'
);
}
/**
* Tests that the 'toolbar/subtrees/{hash}' is reachable.
*/
function
testSubtreesJsonRequest
()
{
$admin_user
=
$this
->
admin_user
;
$this
->
drupalLogin
(
$admin_user
);
// Request a new page to refresh the drupalSettings object.
$subtrees_hash
=
$this
->
getSubtreesHash
();
$this
->
drupalGetJSON
(
'toolbar/subtrees/'
.
$subtrees_hash
);
$this
->
assertResponse
(
'200'
);
}
/**
* Get the hash value from the admin menu subtrees route path.
*
...
...
This diff is collapsed.
Click to expand it.
core/modules/toolbar/toolbar.routing.yml
+
1
−
1
View file @
4fe6358e
...
...
@@ -3,4 +3,4 @@ toolbar.subtrees:
defaults
:
_controller
:
'
\Drupal\toolbar\Controller\ToolbarController::subtreesJsonp'
requirements
:
_custom_access
:
'
\Drupal\toolbar\
Routing
\ToolbarController::checkSubTreeAccess'
_custom_access
:
'
\Drupal\toolbar\
Controller
\ToolbarController::checkSubTreeAccess'
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