[FIX] website_event: allow controller to read event.registration

The controller /event/<model("event.event"):event>/registration/confirm
was broken since the portal user cannot read event.registration objects.

In 9.0 this was not an issue as we browsed and sudoed the
event.registration, but since in 10.0 this line disapeared so did the
sudo which this commit reintroduces.
This commit is contained in:
RomainLibert
2018-06-14 14:14:50 +02:00
parent f03f2f7c8a
commit 84acd427b8
+1 -1
View File
@@ -255,6 +255,6 @@ class WebsiteEventController(http.Controller):
Attendees._prepare_attendee_values(registration))
return request.render("website_event.registration_complete", {
'attendees': Attendees,
'attendees': Attendees.sudo(),
'event': event,
})