Commit 912c8c1e authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_xhtml_style: show error message

parent 8208074e
......@@ -9,6 +9,10 @@ try:
return context.standard_error_message_template(*args, **kw)
except Unauthorized:
pass
except:
# for LocationError
return context.getPortalObject().standard_error_message_template(*args, **kw)
try:
# Note: - user can be unauthorized to getWebSiteValue() from this context
# - "web_site_value" comes from erp5.Document.WebSite.WEBSITE_KEY (unauthorized to import)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment