London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Ok, so I have this client requirement to be able to display a 'crippled' version of the product details page for products that are not available (expired, etc.).
The OOTB functionality is to redirect the user to home page / login page if they try to browse the direct link to an unavailable product.
As this is a MVC implementation I've gone down the route of overriding the OnAuthorization method in my base product controller and implementing a custom AccessDeniedHandler. This is where I'm stuck though.
Does anyone have any suggestions for how to bypass the underlying authorization and continue to call the product controller Index action??