[FIX] website_event: call method as current user, not superuser
because this makes no sense.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user