[FIX] website_event: call method as current user, not superuser

because this makes no sense.
This commit is contained in:
Thibault Delavallée
2015-04-01 10:11:30 +02:00
parent d9f5d8b7fb
commit 09992333f3
+1 -1
View File
@@ -267,7 +267,7 @@ class website_event(http.Controller):
registration_ids.append(
Registration.create(
cr, SUPERUSER_ID,
Registration._prepare_attendee_values(cr, SUPERUSER_ID, registration),
Registration._prepare_attendee_values(cr, uid, registration),
context=context))
attendees = Registration.browse(cr, uid, registration_ids, context=context)