• 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 !192
    9db00ea6
testERP5Core.py 26.3 KB