Problem/Motivation
Currently, when visiting the page /admin/config/system/cookiecontrol without permission to edit the civic cookie control settings, you still see the header:

Steps to reproduce
This issue is reproducible with a clean install:
- Enable module.
- Visit
/admin/config/system/cookiecontrolas anonymous user.
Proposed resolution
Only show the header when the user has access to edit the settings.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2021-06-02 at 13.46.27.png | 225.96 KB | jeroent |
Comments
Comment #2
jeroentComment #4
tper commentedfixed in 4.4.7
Comment #5
jeroentI don't think the committed fix is the right solution, since the output of hook_theme will be cached. So this means that, depending on who visited the page first, anonymous users still see the header or authenticated user won't see the header.
Comment #7
tper commentedA new fix is provided in version 4.4.8 that avoids the theme caching issue reported in https://www.drupal.org/project/civicccookiecontrol/issues/3216931#commen....
Comment #8
tper commented