Skip to content
Snippets Groups Projects
Commit ee1d83dc authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_event: display normal 404 for non website editor.

Without this patch, the user will see a button 'create a new page' on the 404
for the controller /event/<event_id>/page/<page>
parent 159bcf3c
Branches
Tags
No related merge requests found
......@@ -149,7 +149,7 @@ class WebsiteEventController(http.Controller):
# page not found
values['path'] = re.sub(r"^website_event\.", '', page)
values['from_template'] = 'website_event.default_page' # .strip('website_event.')
page = 'website.page_404'
page = 'website.%s' % (request.website.is_publisher() and 'page_404' or '404')
return request.render(page, values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment