Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Here is the patch with the improved check for access. Seems like the #access didn't work on the toolbar_item element. We need to wrap it in an if in order to not display anything (like libraries).
Thanks, @Berdir and @sasanikolic but the patch is now outdated after commit #3122957: Show search field by default? I running low of time now, can you reroll the patch?
Comments
Comment #2
sasanikolic commentedForgot to attach the screenshot.
Comment #3
sasanikolic commentedHere is the patch with the improved check for access. Seems like the #access didn't work on the toolbar_item element. We need to wrap it in an if in order to not display anything (like libraries).
Comment #4
berdirI'd suggest an early return if you don't have access instead, that will be a much easier patch to review.
Comment #5
berdirAlso, seems like it should be possible to test this?
Comment #6
sasanikolic commentedI added the check and return and improved the tests as suggested above.
Comment #7
adriancidThanks, @Berdir and @sasanikolic but the patch is now outdated after commit #3122957: Show search field by default? I running low of time now, can you reroll the patch?
Comment #8
sasanikolic commentedSure, I rebased the patch now.
Comment #9
berdirLooks good now I think.
Comment #12
adriancidThanks
Comment #14
yahyaalhamadUploaded a fast fix patch for 2.2 until a new version is released.