Updated PermissionDeniedException to redirect to an index page for a resource, rather than the home page