Closed (fixed)
Project:
Admin Toolbar
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Apr 2020 at 12:23 UTC
Updated:
10 Jun 2020 at 11:48 UTC
Jump to comment: Most recent, Most recent file
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.