• Tristan Cavelier's avatar
    erp5_xhtml_style: redirect to portal if unauthorized to show an error · 9db00ea6
    Tristan Cavelier authored
    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
    9db00ea6
standard_error_message_template.zpt 429 Bytes