Redirect when no access

How can I redirect to to another page than login, when the authenticated user has no access to the page?
As in that the user is not a member of the correct user group to have access to the page.

I’m trying to display a “No access to this page” instead of just the login window again.

1 Like