Strange behavior

Dear colleagues
The website staff-association is open, public access.
I have tried to add a menu with some content restricted to a specific role, however it does not work. All the content remains accessible to everybody.
I have already used this in other sites and works properly.
I do not understand the behavior.
Could someone help with this issue?
Thanks a lot
regards
Almudena

Hi Almudena,

We do have one menu item on visit.cern that is only visible to signed-in CERN account holders only.

See : visit.cern > Guided Tours > Private - members of the CERN personnel (does not appear if you are not signed-in) or simply click on: https://visit.cern/private-guided-tours

The menu item and the page have the same URL.

The only thing I made is to modify the Grants of the page to Authenticated users only to be able to view the page.

The menu item follows the logic.

Best,

François

Another example is the future Guides website (https://cern.ch/test-guides).

If you are not signed-in, no menus appear.
If you are signed-in, all menus appear.

For this, I have edited the Block that contains the main navigation menu and made it visible to authenticated users only.

Best,

François

Thanks a lot Francois, I will try in my menu.
Regards
Almudena

Hi François,
I also want to do some restricted content but I have not the “Grants” tab as you. Do you have installed a specific module for that ?
Thanks.
Michel

Is it nodeaccess module ?

The best module in my opinion is the Content Access which is already provided by CERN’s central infrastructure.

It is already Drupal 9 ready and you won’t have problems with the upcoming migration.

I found that other similar modules like node access cause conflicts with other modules and I tend to avoid them.

OK, thanks.
Michel

It seems I was using nodeaccess, but follow Sotirios’ recommendation.

Best regards,

François