erp5_xhtml_style: redirect to portal if unauthorized to show an error
After going to a resource that you are unauthorized to view, then the error is shown incorrectly because the default UI tries to use properties of the same resource, reraising unauthorized error. With this commit, if unauthorized is reraised, it tries to show the error from the portal object. If the user is still unauthorized to see the error output, then the error is shown directly without the classic UI. /reviewed-on nexedi/erp5!192
Showing
Please register or sign in to comment