[FIX] website_sale_digital: make /my/orders accessible with just token

This route should be public because the public user should have access
if the correct access token is passed. super() will ensure that.
This commit is contained in:
Joren Van Onder
2018-06-28 18:47:51 +02:00
committed by Romain Derie
parent 2fa469c5e5
commit 2362ea09f8
@@ -28,7 +28,7 @@ class WebsiteSaleDigital(CustomerPortal):
@http.route([
'/my/orders/<int:order>',
], type='http', auth='user', website=True)
], type='http', auth='public', website=True)
def portal_order_page(self, order=None, **post):
response = super(WebsiteSaleDigital, self).portal_order_page(order=order, **post)
if not 'order' in response.qcontext: