We see the same issue.
We update roles of users, using the Sitefinity REST service. The Roles get updated(we verified by getting the roles for user using REST service).
We have some sitefinity pages restricted to users with roles assigned. Even after a role is removed for a user(and even after logging out, clearing cache, closing brower, accessing in different browser etc.....)
, the user is able to see the page listed in navigation. It takes a while for navigation to be updated.
We get below error in mean time, when we try to access the page:
Server Error in '/' Application.
You are not authorized to 'View this page and its child pages'
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
System.UnauthorizedAccessException: You are not authorized to 'View this
page and its child pages' ('Pages').
Please provide a solution.