Only RestrictAccessByRouteId if there is a route