Problem/Motivation
Some admin routes can also be rendered using the frontend theme, depending on the permissions of the user.
Steps to reproduce
- Create a node type
- Create a user role that can edit its own nodes of this type, but without
view the administration themepermission - Create a user with this role, log in and create/edit a node. The styling will be broken.
Proposed resolution
An additional permission check should be added to CriticalCssProviderInterface::isEnabled.
Issue fork critical_css-3327177
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dieterholvoet commentedComment #5
albertosilvaHi,
Thanks for your patch, I've already merged it and will publish a new version in a couple of days.
Comment #6
albertosilva