I have IAuthorizationFilter filter that checks for specific roles. In case user doesn’t have specified roles, I’d like to show a specific view that says something along the lines of “You don’t have privileges to view this page”.
I’d also like to show this view on specific url, so redirect is not an option.
Here is what I want:
1) User goes to /Admin/Payments
2) /Admin/Payments requires Admin rights
3) User is not an admin.
4) User is show page that says that he cannot access this page, yet url is /Admin/Payments
Thanks.
and then: