change of user role has no effect on menu items access without a cache purge

Created on 21 March 2022, over 2 years ago
Updated 2 August 2024, about 2 months ago

Problem/Motivation

Installed module and added 'anonymous' access only to a link.
Cleared cache, went to visit the page where the menu appears as administrator, and still see the link there.
Checked the documentation and can confirm the link in question is a menu_link_content entity.

I then went and loaded up simplytest.me with this module installed and created a piece of test content.
Added a link entry to the User Account Menu that points to this piece of test content with 'Anonymous' selected, still visible as admin.
Changed role to 'Content Editor' - still visible as admin.
Also still visible as anonymous, seems to not be doing anything.

Steps to reproduce

1. loaded up simplytest.me with this module installed and created a piece of test content
2. Add a link entry to the User Account Menu that points to this piece of test content with 'Anonymous' selected
3. Check if it's visible logged in
4. Change role control to 'Content Editor' and test again
5. Check if it is visible logged out

Proposed resolution

From the quick tests I did it seems like this module is not operating correctly, at least not with the steps I took.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom ChrisDarke London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024