• Jérome Perrin's avatar
    Fix behaviour of category accessors when a document is related to · 01b2fde2
    Jérome Perrin authored
    another document you cannot access.
    The behaviour was different wether you call use default accessor or list accessor:
     - get(Category)Value raises Unauthorized
     - get(Category)ValueList filters documents you cannot access (because
       exceptions are ignored).
    
    As you can pass checked_permission= to explicitly filter documents you cannot
    access, get(Category)ValueList should raise Unauthorized, this also makes
    behaviour consistent with get(Category)Value.
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20200 20353a03-c40f-0410-a6d1-a30d3c3de9de
    01b2fde2
testERP5Type.py 86.3 KB