From 2291402bfe892afa503ae9fd478e8cc331443653 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Aug 2022 15:30:47 +0200 Subject: [PATCH] correction bug --- controllers/booking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/booking.py b/controllers/booking.py index 29354c9..419f79b 100644 --- a/controllers/booking.py +++ b/controllers/booking.py @@ -97,7 +97,7 @@ class booking(WebsiteEventController,AuthSignupHome): return request.redirect('/booking/registration/options?event_id='+str(request.session['event_id'])) #si déjà inscrit, redirection vers page d'information - reg=request.env['event.registration'].search([('event_id','=',int(post.get('event_id'))),('email','=',post.get('email'))]) + reg=request.env['event.registration'].sudo().search([('event_id','=',int(post.get('event_id'))),('email','=',post.get('email'))]) if reg: return http.request.render('kalachakra.booking_registration_already_registered')