I use this to show part of the page to users with ‘some.rule’ access:
{% if grav.user.authorize('some.rule') %}
My content
{% endif %}
The problem is:
if the admin grants access while the user is already logged in, it doesn’t work. In other words, user has to logout and login to see the hidden content.
Can it be fixed?
Can I hide part of a page for group of users somehow else?
Thanks!